For GC [IVW: OR = 0.559, 95% CI: 0.382-0.820, P = .0029] and HCC [IVW: OR = 0.241, 95% CI: 0.085-0.686, P = .0077], HMGCR inhibitors had a protective risk. This evidence concerns the gene HMGCR and gastric cancer.