579 groups of immune cell infiltration and chemokine/interleukin expression showed statistically significant changes in the immune microenvironment from extensive atrophic gastritis to early and midstage gastric cancer (T1, T2) such as central memory CD4 T cell with the highest change in cell infiltration. Here, CD4 is linked to chronic atrophic gastritis.