The results showed that infiltration of naïve B cells (HR = 2.060, 95% CI 1.276–3.325, P = 0.003) and Tregs (HR = 1.600, 95% CI 1.096–2.335, P = 0.015) increased in GC tumor tissues with high expression of TIM-3. Here, HAVCR2 is linked to gastric cancer.