Our results indicate that GGT plays a crucial mediating role, while ALT and AST further contribute to the modulation of depression on MASLD. Here, GPT is linked to depressive disorder.