Vaccines work by stimulating the immune system to recognize and destroy pathogens like bacteria and viruses. There are several types of vaccines including whole organism vaccines using live attenuated or killed pathogens, purified components like exotoxins or capsular polysaccharides, recombinant vector vaccines using attenuated viruses expressing pathogen genes, experimental DNA vaccines, and multivalent subunit vaccines combining multiple antigens. Adjuvants are often included in vaccines to boost the immune response.