Previous epidemiologic studies have suggested a potential negative correlation between total cholesterol (TC) and Gastric cancer (GC); however, several observational studies have shown conflicting results and have failed to provide definitive evidence for a causal relationship between TC and GC. Therefore, we conducted a 2-sample bidirectional Mendelian randomization (MR) study to explore the genetic correlation and potential causal relationship between the 2 variables. We screened for single nucleotide polymorphisms (SNPs) associated with TC and GC utilizing a large-scale genome-wide association study (GWAS) public database. The causal relationship was analyzed using 5 MR analysis methods: inverse variance weighting (IVW), weighted median, MR-Egger regression, weighted mode, and simple mode. Additionally, reverse MR analysis was performed to evaluate the possibility of reverse causality. Sensitivity analyses were conducted, including heterogeneity tests, horizontal multiple validity tests, and leave-one-out tests. After meticulous screening, 79 SNPs were identified as instrumental variables (IVs). The IVW method revealed a causal relationship between TC and GC (OR = 0.844; 95% CI: 0.741–0.961; P = .01). Sensitivity analyses did not detect significant horizontal pleiotropy. Though heterogeneity was observed in the forward MR analysis (IVW, Qp = 0.0006), the results remained reliable as we utilized the IVW random-effects model as the primary analytical method. Furthermore, inverse MR analysis found no evidence of reverse causality between TC and GC, effectively ruling out the influence of GC on the reverse causality of TC. Our MR study provided evidence of a causal association between TC and GC, suggesting that TC acts as a protective factor against GC due to its negative association with the disease.