State of being insusceptible or resistant to a noxious agent or process
In biology, immunity is the state of being insusceptible or resistant to a noxious agent or process, especially a pathogen or infectious disease. Immunity may occur naturally or be produced by prior exposure or immunization. Innate and adaptive. The immune system has innate and adaptive components. Innate immunity is present in all metazoans, immune responses: inflammatory responses and phagocytosis. The adaptive component, on the other hand, involves more advanced lymphatic cells that can distinguish between specific "non-self" substances in the presence of "self".
https://en.wikipedia.org/wiki/Immunity_(medicine)