Immunity refers to the body’s ability to recognize and defend itself against bacteria, viruses, and other harmful substances. In pediatrics, understanding immunity is crucial because children's immune systems are still developing, making them more susceptible to certain infections.