A higher dietary methylmercury intake was associated with an increased risk of GC, while the IL23R rs10889677 polymorphism may modify the detrimental effect of dietary methylmercury on gastric carcinogenesis. Here, IL23R is linked to gastric cancer.