T cells differ from B lymphocytes in an important way. T cells, responsible for dealing with most viruses, some bacteria and fungi, and for cancer surveillance, are one of the two main classes of lymphocytes. As one variety of white blood cells, lymphocytes are part of the body's immune system; the immune system fights invading organisms that have penetrated the body's general defenses.