What Do Blood Types Actually Mean?

Blood typing saves millions of lives. But what exactly is the science behind it, and what do the different blood types mean?