What do vaccines do?

Vaccines expose the immune system to a small amount of a disease so that the immune system learns how to fight it. This prevents the patient from getting the actual disease in the future