Vaccines work by training the immune system to recognize pathogens and produce antibodies to fight them off. When a vaccinated person encounters a pathogen, their immune system is already prepared to respond effectively. Vaccination protects both individuals and communities through herd immunity. Herd immunity occurs when a high percentage of the population is vaccinated, indirectly protecting those who cannot receive vaccines. Vaccines are crucial for building immunity against diseases like COVID-19 and stopping their spread.