The emerging evidence indicates that single nucleotide polymorphisms (SNPs) of the TNF, IL10, TP53, and CD14 genes may determine individual susceptibility to gastric cancer. We aimed to investigate the associations for polymorphisms of the TNF, IL10, TP53, and CD14 genes in a population of Kazakhs, to identify potential risk or protective associations of the SNPs with gastric cancer. A case group of 143 patients hospitalized for gastric cancer was enrolled. Controls were 355 volunteers with no history of any cancer and frequency matched with cases by age. Differences in proportions for categorical variables and the assessment of genotypic frequencies conforming to the Hardy–Weinberg equilibrium law were evaluated by the chi-square test. Associations between genetic polymorphisms and the risk of gastric cancer were estimated by regression analysis. For genetic analysis, three genetic models (additive, dominant, and recessive) were used. Four significant associations were found. The SNPs rs1042522 of TP53 and rs1800896 of IL10 were risk factors for gastric cancer by the additive model. Two polymorphisms of IL10 were protective of gastric cancer, namely, rs1800872 by additive model and rs1800871 by recessive model. No significant associations were observed between TNF and CD14 polymorphisms and gastric cancer. The polymorphisms TP53 rs1042522 and IL10 rs1800896 are associated with gastric cancer risk, while the polymorphisms IL10 rs1800872 and rs1800871 are protective of gastric cancer in the population of Kazakhs.