According to our study, the accumulation of CD8+, CD3+, CD57+ TILs and depletion of FOXP3+ TILs were all favorable prognostic factors in gastric cancer. The gene discussed is B3GAT1; the disease is gastric cancer.