The study of the immune system and the ways in which the body fights against infections and diseases.