In conclusion, ERCC6 rs1917799, ERCC8 rs158572 and rs158916 demonstrated pairwise epistatic interactions to associate with chronic atrophic gastritis and gastric cancer risk. Here, ERCC8 is linked to gastritis.