The immune system is a method of numerous biological structures and processes within an organism that protects against illness. To function appropriately, an immune system must detect a broad diversity of agents, recognized as pathogens, from viruses to parasitic worms, and distinguish them from the organism’s own healthy tissue.