White blood cells, also known as leukocytes, are the cells of the immune system. White blood cells help fight infection by attacking invaders and consuming infectedor dead cells. The body has various types of white blood cells, but all are produced in the bone marrow