Identify the function of lymph nodes: Lymph nodes are small, bean-shaped structures located along the lymphatic vessels. Their primary role is to filter lymph, trapping impurities such as bacteria, viruses, and other foreign particles. They also house immune cells like lymphocytes and macrophages, which help destroy these pathogens.