Celastrol can inhibit the oxidative stress reaction and liver cell apoptosis via regulation Nrf2/HO‐1 pathway in T2DM mice with NAFLD. Here, HMOX1 is linked to type 2 diabetes mellitus.