Vitamin D is a potential protective agent against cancer, and its activity is mediated mainly by vitamin D receptor (VDR). The FokI polymorphism (rs10735810) represents a T-to-C transition (ATG to ACG) in exon 2 of the VDR gene, and this ATG represents the translation-initiation codon, encoded by the f allele. The FokI polymorphism results in the generation of a protein shortened by three amino acids, translated from the downstream ATG codon (the F allele). We investigated the relationship between the FokI polymorphism and gastric cancer in a Chinese Han population. A total of 187 patients and 212 healthy controls were enrolled. The FokI polymorphism was detected by polymerase chain reaction restriction fragment length polymorphism (PCR-RFLP) analysis. The f allele frequency was higher in patients than that in controls (51.6% and 43.6%, P < 0.05). Multivariate logistics regression analysis revealed patients with the f allele (Ff + ff) showed a higher risk of gastric cancer [odds ratio (95% confidence interval) 2.73 (1.13~4.32)]. Patients with the f allele (Ff + ff) also presented a poorly differentiated type of gastric cancer (P < 0.05) and higher levels of C-reactive protein on admission than the FF group (5.5 ± 2.4 mg/L vs. 3.4 ± 1.3 mg/L, P < 0.05). Here, we show an association between the VDR FokI polymorphism and the susceptibility to gastric cancer, which may be helpful for early detection of high-risk individuals with the f allele for gastric cancer. Conversely, the F allele may be a protective factor against gastric cancer.