B cells are primarily responsible for producing antibodies (immunoglobulins) that bind to specific antigens and facilitate immune responses against foreign substances.