This study demonstrated that ursolic acid (UA) has a protective effect on T2DM combined with NAFLD, and its mechanism of action may be related to the regulation of the NLRP3 signaling pathway by UA, which inhibits oxidative stress, inflammation and fibrosis. This evidence concerns the gene NLRP3 and metabolic dysfunction-associated steatotic liver disease.