Vaccines play a crucial role in public health by preventing the spread of infectious diseases. They help build immunity within a population, reducing the incidence of diseases and sometimes even eradicating them. Vaccines have been instrumental in controlling diseases like polio, measles, and smallpox.