Population immunity can be achieved in two primary ways:
Natural immunity: This occurs when individuals become immune after recovering from an infection. Vaccine-induced immunity: This is achieved when individuals are vaccinated against a disease, prompting their immune system to build defenses without experiencing the disease.