Nonalcoholic steatohepatitis (NASH) is a prevalent chronic disease, yet its exact mechanisms and effective treatments remain elusive. Nuclear receptor subfamily 5 group A member 2 (NR5A2), a transcription factor closely associated with cholesterol metabolism in the liver, has been hindered from comprehensive investigation due to the lethality of NR5A2 loss in cell lines and animal models. To elucidate the role of NR5A2 in NASH, we generated hepatocyte-specific knockout mice for Nr5a2 (Nr5a2HKO) and examined their liver morphology across different age groups under a regular diet. Furthermore, we established cell lines expressing haploid levels of NR5A2 and subsequently reintroduced various isoforms of NR5A2. In the liver of Nr5a2HKO mice, inflammation and fibrosis spontaneously emerged from an early age, independent of lipid accumulation. Pyroptosis occurred in NR5A2-deficient cell lines, and different isoforms of NR5A2 reversed this form of cell death. Our findings unveiled that inhibition of NR5A2 triggers pyroptosis, a proinflammatory mode of cell death primarily mediated by the activation of the NF-κB pathway induced by reactive oxygen species (ROS). As a transcriptionally regulated molecule of NR5A2, aldehyde dehydrogenase 1 family member B1 (ALDH1B1) participates in pyroptosis through modulation of ROS level. In conclusion, the diverse isoforms of NR5A2 exert hepatoprotective effects against NASH by maintaining a finely tuned balance of ROS, which is contingent upon the activity of ALDH1B1.