T cells function through two main mechanisms: cytotoxicity and helper functions. Cytotoxic T cells (CD8+ T cells) directly kill infected or cancerous cells by inducing apoptosis. Helper T cells (CD4+ T cells) support other immune cells by releasing cytokines, which enhance the immune response.