Herd immunity, also known as community immunity, occurs when a sufficient portion of the population becomes immune to a disease, thereby reducing its spread. This can be achieved through vaccination or previous infection. In the context of pediatrics, achieving herd immunity is crucial to protect children, especially those who are too young or unable to receive certain vaccines due to medical conditions.