The immune system defends the body against viruses, microorganisms, cancer cells, and foreign proteins. It is composed of cells and organs that work together. The lymphoid system includes lymphoid cells like T cells and B cells that originate and mature in primary lymphoid organs like the thymus and bone marrow. Secondary lymphoid organs, such as lymph nodes and the spleen, help activate immune cells and filter pathogens from lymph and blood. Together, these cells and organs recognize and eliminate threats to the body.