Cell-mediated and humoral immunity are the two main branches of the immune system. Cell-mediated immunity involves T cells that directly recognize and kill infected cells or activate other immune cells like macrophages. Humoral immunity involves B cells that produce antibodies, which circulate in bodily fluids and help neutralize pathogens or mark them for destruction. Both branches work together to protect the body from pathogens through mechanisms like activating cytotoxic T cells, stimulating macrophage and natural killer cell action, and initiating antibody production and complement activation.