The results showed that Tregs, dendritic cells, eosinophils, and CD8+ T cells were significantly positively correlated with CXCR4 expression in patients with GC, which is concurrent with our hypothesis that CXCR4 may be the hub gene of the TME in GC. This evidence concerns the gene CXCR4 and gastric cancer.