In conclusion, SGLT2i was more effective than DPP4i in improving serum ALT levels and hepatic fibrosis indices in patients with T2DM and suspected MASLD. Here, GPT is linked to type 2 diabetes mellitus.