Vaccines are preventative medications that are created to help protect people from serious and often deadly diseases. Vaccines work by producing immunity (protection) within the body so it can learn how to fight diseases or illnesses it has not contracted before. Vaccines can be taken via a shot, orally, or through the nose (spray).