Lymph nodes. Lymph nodes (or lymph glands) are part of the body's immune system. They filter harmful substances like bacteria and cancer cells from your body, and help fight infections. They also play an important role in cancer diagnosis, treatment and prognosis.