It studies the immune system and how it defends the body against pathogens, toxins, and other foreign substances.