Our study found that H. pylori IgG antibody, H. pylori GroEL antibody, gastroduodenal ulcer and chronic gastritis are all related to t T2DM, and blood glucose level and obesity mediate the development of H. pylori GroEL antibody and gastroduodenal ulcer on T2DM, respectively. Here, HSPD1 is linked to chronic gastritis.