<Tr> <Th> FMA </Th> <Td> 5034 </Td> </Tr> <Tr> <Td_colspan="2"> Anatomical terminology (edit on Wikidata) </Td> </Tr> <P> A lymph node or lymph gland is an ovoid or kidney - shaped organ of the lymphatic system, and of the adaptive immune system, that is widely present throughout the body . They are linked by the lymphatic vessels as a part of the circulatory system . Lymph nodes are major sites of B and T lymphocytes, and other white blood cells . Lymph nodes are important for the proper functioning of the immune system, acting as filters for foreign particles and cancer cells . Lymph nodes do not have a detoxification function, which is primarily dealt with by the liver and kidneys . </P> <P> In the lymphatic system the lymph node is a secondary lymphoid organ . A lymph node is enclosed in a fibrous capsule and is made up of an outer cortex and an inner medulla . </P>

What is the main function of the lymph nodes