B cells play important roles in both humoral and cellular immunity. Upon activation by antigen and T cell help, B cells undergo proliferation, class switching, and differentiation into either plasma cells that secrete large amounts of antibodies, or memory B cells. Antibodies produced by plasma cells help eliminate pathogens and toxins from the body. Memory B cells provide long-lasting immunity against pathogens previously encountered. B cell-derived cytokines also contribute to the development and activation of secondary lymphoid tissues, which help mount adaptive immune responses.