Myocardial fibrosis is a critical concern in clinical medicine. This study explores the potential of odoratin as a treatment for myocardial fibrosis and investigates its underlying mechanisms. In vitro experiments involved stimulating primary mouse cardiomyocytes with TGF-β1, followed by odoratin treatment, to assess levels of reactive oxygen species (ROS) and nitric oxide (NO). In vivo, a mouse model of myocardial fibrosis was established using abdominal aortic constriction (AAC) and treated with odoratin. ROS and NO levels in myocardial tissue were then evaluated. Immunofluorescence and Western blotting analysis showed that odoratin reduced excess ROS, enhanced NO production and decreased fibrosis-related protein expression in vitro. In vivo, odoratin significantly improved cardiac function, reduced ROS, increased NO levels and mitigated fibrosis in AAC-induced mice. Both in vitro and in vivo, odoratin inhibited the expression of NADPH oxidase 4 and EZH2, while promoting the expression of phosphorylated endothelial nitric oxide synthase (p-eNOS) and PPARγ. The anti-fibrotic effects of odoratin were reversed by PPARγ antagonism, and EZH2 overexpression diminished PPARγ activation by odoratin. These findings suggest that odoratin may combat myocardial fibrosis by balancing ROS and NO through PPARγ activation, with EZH2 inhibition likely playing a key regulatory role.