In this study, the correlation between GXYLT2 expression and tumor-infiltrating immune cells in gastric cancer was explored, and the analysis of the proportion of tumor immune infiltrating cells by CIBERCSORT showed that resting dendritic cells, M2 macrophages, and resting mast cells were positively correlated with GXYLT2 expression. Here, GXYLT2 is linked to gastric cancer.