Herd immunity occurs when a large portion of a community becomes immune to a disease, making its spread unlikely. This form of indirect protection is crucial for those who cannot be vaccinated, such as individuals with certain medical conditions. Vaccination plays a key role in achieving herd immunity by reducing the number of susceptible hosts.