Genetic evidence suggests that H. pylori IgG antibody (P = 0.006, b = 0.0945, OR = 1.0995, 95% CI = 1.023–1.176), H. pylori GroEL antibody (P = 0.028, OR = 1.033, 95% CI = 1.004–1.064), gastroduodenal ulcers (P = 0.019, OR = 1.036, 95% CI = 1.006–1.068) and chronic gastritis (P = 0.005, OR = 1.042, 95% CI = 1.012–1.074) are all linked to an increased risk of T2DM, additionally, H. pylori IgG antibody is associated with obesity (P = 0.034, OR = 1.03, 95% CI = 1.002–1.055). The gene discussed is HSPD1; the disease is obesity disorder.