The incidence of metabolic dysfunction-associated steatohepatitis (MASH) is on the rise, and with limited pharmacological therapy available, identification of new metabolic targets is urgently needed. Oxalate is a terminal metabolite produced from glyoxylate by hepatic lactate dehydrogenase (LDHA). The liver-specific alanine-glyoxylate aminotransferase (AGXT) detoxifies glyoxylate, preventing oxalate accumulation. Here we show that AGXT is suppressed and LDHA is activated in livers from patients and mice with MASH, leading to oxalate overproduction. In turn, oxalate promotes steatosis in hepatocytes by inhibiting peroxisome proliferator-activated receptor-α (PPARα) transcription and fatty acid β-oxidation and induces monocyte chemotaxis via C–C motif chemokine ligand 2. In male mice with diet-induced MASH, targeting oxalate overproduction through hepatocyte-specific AGXT overexpression or pharmacological inhibition of LDHA potently lowers steatohepatitis and fibrosis by inducing PPARα-driven fatty acid β-oxidation and suppressing monocyte chemotaxis, nuclear factor-κB and transforming growth factor-β targets. These findings highlight hepatic oxalate overproduction as a target for the treatment of MASH.