The MR analysis indicated a negative association between HMGCR‐mediated LDL and hepatocellular carcinoma (OR = 0.06, 95% CI: 0.00–0.81, p = 0.03), and a positive association between NPC1L1‐mediated LDL and gastric cancer risk (OR = 15.45, 95% CI: 5.96–40.56, p < 0.01). This evidence concerns the gene HMGCR and hepatocellular carcinoma.