Genetically mimicking the HMGCR inhibitors was found to be significantly associated with a decreased risk of osteonecrosis in both the MR analysis (OR = 0.36 [95% CI 0.19–0.65], p = 8.5 × 10−4) and GRS analysis (OR = 0.994 [95% CI 0.992–0.997], p = 6.5 × 10−4). Here, HMGCR is linked to osteonecrosis.