There are three main types of immunity: innate, acquired, and herd immunity. Innate immunity is resistance possessed from birth and provides the initial defense. Acquired immunity develops during one's lifetime through exposure to antigens and allows the body to recognize and eliminate specific foreign substances with antigen specificity and immunological memory. Acquired immunity can be active, developed from natural exposure or artificial vaccination, or passive, developed from transfer of antibodies rather than active immune response. Herd immunity occurs when a sufficient percentage of a population is immune, either through prior infection or vaccination, reducing infections within the overall community.