Zhao et al. delineate the dynamic evolution of the gastric mucosal microenvironment and characterize diverse immune cell populations during gastric cancer progression under H. pylori infection. They identify and validate that H. pylori-associated activated mast cells promote gastric cancer through PGE2-and adenosine-mediated suppression of CD8+ T cell cytotoxicity.