The immune system provides protection from infectious diseases and has both specific and nonspecific components. It recognizes foreign substances and mounts an effector response, while also developing memory responses. The immune system consists of natural and artificial immunity, with natural immunity including biological, chemical, general, and physiological barriers as the first line of defense, while artificial immunity involves active and passive immunization developed from the discoveries of scientists like Jenner, Pasteur, von Behring, Koch, and Metchnikoff.