B cell–mediated immunity, the ability to produce an immune response induced by B lymphocytes. Contact with a foreign antigen stimulates B cells to differentiate into plasma cells, which release antibodies. Plasma cells also generate memory cells, which provide a rapid response if the same antigen is encountered again. T cells play a crucial role in the differentiation of B cells into plasma cells.