Survival analysis showed that the infiltration level of CD8+ T cells, activated CD4+ memory T cells and M2 macrophages were significantly related to the prognosis of GC patients. This evidence concerns the gene CD4 and gastric cancer.