CD8+ T cells recognize and kill cells presenting peptides from viruses or other pathogens through MHC class I molecules. They perform this function through two main mechanisms: 1) secreting cytokines like TNF-α and IFN-γ that have anti-viral and anti-tumor effects, and 2) releasing cytotoxic granules containing perforin and granzymes that form pores in target cells and induce apoptosis. CD4+ T cells help regulate and support the CD8+ T cell response through licensing dendritic cells and promoting interactions between dendritic cells and CD8+ T cells.