Haplotype-pairs formed with TNF-α-1031, -863 and -857 were associated with a significantly greater increased risk for gastric cancer only among smokers but not among non-smokers. Here, TNF is linked to gastric cancer.