Vaccines are a critical tool in the establishment of active immunity. They mimic natural infection, allowing the immune system to recognize and combat the actual pathogen without causing disease. Vaccination programs have successfully controlled or eradicated many infectious diseases, such as smallpox, polio, and measles.