Our results indicated that patients with AITD were more susceptible to H. pylori infection (OR = 2.25, 95% CI: 1.72–2.93), particularly infection with CagA-positive strains of H. pylori (OR = 1.99, 95% CI: 1.07–3.70). The gene discussed is S100A8; the disease is infection.