Lymphocytes are produced through a process called hematopoiesis, which occurs primarily in the bone marrow. Stem cells differentiate into different types of blood cells, including lymphocytes, which then mature and populate the lymphoid organs.