Immunity refers to the body's ability to defend itself against harmful microorganisms like bacteria, viruses, and other pathogens. The immune system comprises various cells, tissues, and organs that work together to protect the body. When the immune system encounters a pathogen, it triggers an immune response to neutralize or eliminate the threat.