We performed MR analysis to explore the causal relationship between six key genes (EGFR, AKT1, ESR1, MMP9, HSP90AA1, CASP3) and two diseases: NAFLD and DM. This evidence concerns the gene MMP9 and metabolic dysfunction-associated steatotic liver disease.