Also known as the lymph glands, the lymph nodes filter the lymph fluid when it passes through them, thereby removing bacteria and other impurities, which get collected in these lymph nodes. As lymph nodes also produce white blood cells, the accumulated bacteria in the lymph nodes are destroyed and eventually disposed off through the urine.