The aim of this study was to explore the association between polymorphisms in signal transducer and activator of transcription protein 3 (STAT3) and the risk of gastric cancer. In the present study, a case-control study was conducted in which rs2293152 and rs744166 polymorphisms in STAT3 were analyzed in 209 Chinese patients with gastric cancer and 294 cancer-free controls. The genotypes were determined by polymerase chain reaction restriction fragment length polymorphism method. For the rs744166 polymorphism, the TC genotype (adjusted OR = 0.60, 95% CI = 0.39–0.92, and P = 0.020) and CC genotype (adjusted OR = 0.41, 95% CI = 0.21–0.80, and P = 0.009) were associated with a decreased risk of gastric cancer compared to the TT genotype. However, rs2293152 did not show any difference in gastric cancer risk between patients and controls in the CG/CC genotype compared to the GG genotype. Besides, the SNP effects were additive to the effects of environmental factors without any interaction between them in the susceptibility to gastric cancer. Collectively, rs744166 polymorphism might be significantly associated with a decreased risk of gastric cancer in a Chinese population. Additionally, polymorphisms in STAT3, along with environmental factors, might be associated with the development of gastric cancer.