We found that CD8+ T cells (p = 0.002), activated CD4+ memory T cells (p = 0.04), and M2 macrophages (p = 0.041) were independent prognostic factors for GC patients. This evidence concerns the gene CD8A and gastric cancer.