T cells constantly survey the body for signs of infection or malignancy through the recognition of fragments of antigens (peptides) complexed to molecules of the major histocompatibility complex.