The two types of immunity are active immunity and passive immunity.
Active immunity: Immunity developed in the host body due to production of antibodies in response to antigens.
Passive immunity: When ready-made antibodies are directly given to protect the body against foreign agents.