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. The gene discussed is ESR1; the disease is metabolic dysfunction-associated steatotic liver disease.