White blood cells are the principal components of the immune system and function by destroying "foreign" substances such as bacteria and viruses. When an infection is present, the production of WBCs increases. If the number of leukocytes is abnormally low (a condition known as leukopenia), infection is more likely to occur and it is more difficult for the body to get rid of the infection.