In summary, our observations suggest that tumor-infiltrating CD8+ T cells can reach the exhausted state through both cytotoxic T cells and Tc17 cells in the TME of GC. This evidence concerns the gene CD8A and gastric cancer.