Vaccination is a crucial tool in epidemiology for controlling infectious diseases. Vaccines work by stimulating the immune system to develop immunity without causing the disease itself. They often contain antigens derived from the pathogen, which help the immune system recognize and combat the actual pathogen if encountered in the future. Vaccination can lead to herd immunity, where a significant portion of the population becomes immune, thereby reducing the spread of the disease.