Herd immunity occurs when a significant portion of a population becomes immune to a disease, reducing its spread. Vaccination is a critical tool in achieving herd immunity. By immunizing a large part of the population, the effective reproduction number (R) can be reduced below 1, effectively controlling the disease.