Vaccines stimulate the immune system to recognize and fight pathogens, reducing the risk of infection and subsequent transmission. By protecting individuals, vaccines also contribute to herd immunity, decreasing disease spread within communities. Vaccines can eliminate or significantly reduce disease prevalence.