To compare the prognostic value of intratumoral CD8+T and CXCR5+CD8+T in patients with GC, we conducted Kaplan–Meier curves in Zhongshan Hospital cohort (ZSHS, n = 457), Fudan University Shanghai Cancer Center cohort (FUSCC, n = 324), TCGA cohort (n = 318), and ACRG cohort (n = 261). Here, CXCR5 is linked to gastric cancer.