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. The gene discussed is CD4; the disease is gastric cancer.