What are blood groups and why are they important in transfusion medicine?

What are blood groups and why are they important in transfusion medicine?