Immunology is the study of the immune system and its functions. The immune system protects the body from infection through innate and adaptive immunity. Innate immunity provides immediate defense against pathogens while adaptive immunity involves immune cells that develop memory to mount stronger responses against specific pathogens. When not functioning properly, the immune system can lead to autoimmune diseases, allergies, and cancer.