A major family of small lymphocytes that are responsible for antigen-specific humoral immunity as part of the adaptive immunity. Their antigen receptors are surface immunoglobulins (antibodies). They recognize peptides directly and secrete antibodies by differentiating into plasma cells. They also exist as long-lived memory cells.