Epidemiological studies have linked body mass index (BMI) with risk of gastrointestinal cancers. However, for gastric cancer, the relationship is more controversial. In particular, it is unclear whether the observed association is due to confounding or bias inherent in conventional observational studies. To investigate whether BMI is causally associated with gastric cancer risk, we applied Mendelian randomization using individual-level data from 2631 gastric cancer cases and 4373 cancer-free controls. We derived a weighted genetic risk score (wGRS) using 37 BMI-associated genetic variants as an instrumental variable. We used logistic regression to estimate odds ratios (OR) and 95% confidence intervals (CI) for associations between genetically predicted BMI and gastric cancer risk. We observed that higher genetically determined BMI was associated with increased gastric cancer risk (per standard deviation (SD) increase in the wGRS: OR=1.07, 95% CI: 1.02-1.13, P=4.94 × 10-3). Compared with individuals in the bottom tertile of the BMI wGRS, those in the top tertile had 1.14-fold (95% CI: 1.01-1.29) increased risk of developing gastric cancer. Sensitivity analyses using alternative causal inference measures demonstrated consistent association. Our study indicated that genetically high BMI was associated with increased gastric cancer risk, suggesting that high BMI may have a causal role in the etiology of gastric cancer.