Vaccines work by exposing the immune system to antigens from a pathogen. This triggers the production of antibodies and memory cells that can recognize and quickly eliminate the pathogen if exposed in the future. There are several types of vaccines, including those using whole inactivated or attenuated pathogens, as well as newer subunit and vector vaccines that deliver just the antigenic components. Vaccine development and approval is a rigorous process to ensure safety and efficacy.