A vaccine is a medical treatment that helps your body's immune system recognize and fight disease. Vaccines are injections (shots), liquids, pills, or nasal sprays that you take to teach your body's immune system to recognize and defend against harmful germs.