Now, the main function of these T lymphocytes is to actually recognize different types of pathogens, different types of bacterial cells and infected cells by using the antigens found on the surface of those infected and bacterial cells.