In the present study of 1,125 participants (373 cases and 752 controls), we determined whether the dietary inflammatory index (DII) is associated with the risk of gastric cancer (GC) and investigated whether a TNF polymorphism (rs1799964) modifies this association. This evidence concerns the gene TNF and gastric cancer.