T cells recognize cancer cells through specialized receptors on their surface called T Cell Receptors (TCRs). These receptors detect specific antigens presented by cancer cells. When a TCR binds to an antigen-MHC complex on a cancer cell, it triggers the T cell to attack and destroy the malignant cell.