The results confirmed that MLF can inhibit liver inflammation in T2DM rats by regulating the TLR4/MyD88/NF-κB pathway. Here, TLR4 is linked to type 2 diabetes mellitus.