Diabetes mellitus (DM) is a factor with great risk in the course of non-alcoholic fatty liver disease (NAFLD) due to its high glucotoxicity and lipotoxicity. Trilobatin, a glycosylated dihydrochalcone derived from the leaves of the Chinese sweet tea Lithocarpus polystachyus Rehd, is reported to possess various pharmacological activities. Nevertheless, it is still unclear regarding if trilobatin can alleviate liver injury in diabetic mice with NAFLD and its mechanism. Our aim was to investigative the protective effects of trilobatin against DM with NAFLD and its mechanism of action. A DM mice model was established by high-fat diet (HFD) feeding with streptozocin (STZ) injections, and treated with trilobatin for 10 weeks. The biochemical results showed that trilobatin restored glucose metabolic disorder and liver function in diabetic mice. The histopathological evaluation revealed that trilobatin improved liver injury by alleviating lipid accumulation and liver fibrosis. Mechanistically, trilobatin decreased expression of NLRP3, p65 NF-κB, cleaved-Caspase-1 and N-GSDMD, as well as the release of IL-18 and IL-1β, leading to a alleviation of inflammation and pyroptosis. Taken together, we determined for the first time found that trilobatin could prevent liver injury in diabetic mice with NAFLD by suppressing NLRP3 inflammasome activation to reduce inflammation and pyroptosis.