When an infectious disease starts spreading in a particular area, herd immunity is developed when most of the population develops protective antibodies against the contagion and builds an immune response towards it.