Karl Landsteiner discovered the main human blood groups (A, B, AB and O) in 1901. This discovery allowed safer blood transfusions by preventing the mixing of incompatible blood, which can cause fatal reactions. The blood groups are determined by antigens on red blood cells and corresponding antibodies in plasma. People with type O blood are universal donors as their red blood cells lack A and B antigens, while people with type AB blood are universal recipients as they lack antibodies against A and B antigens. Compatible blood groups are required for safe transfusions to avoid agglutination of red blood cells.