For xeroderma pigmentosum group A‐binding protein (XAB2) rs794078 polymorphism, the AA genotype carriers had a significantly lower risk for gastric cancer (OR = 0.33; 95% CI 0.12–0.91) versus GG genotype. The rs794078 heterozygous AG showed no association with the risk of gastric cancer (OR = 1.29; 95% CI 0.95–1.76). The gene discussed is XAB2; the disease is gastric cancer.