Pulmonary hypertension (PH) is a devastating disease characterized by vascular remodeling, resulting in right ventricular failure and death. Dysregulation of energy metabolism is linked to PH pathogenesis. Trimetazidine (TMZ), a selective long-chain 3-ketoacyl coenzyme A thiolase inhibitor, is critical in maintaining energy metabolism. Despite the indicated TMZ’s inhibitory effect on pulmonary vascular remodeling in PH development, the integrated evaluation of the changes in biomolecules, such as metabolites and transcripts, that TMZ induces in the lung and heart tissues is largely unknown in vivo. For an improved understanding of the molecular mechanism involving the effects of TMZ on PH development, we performed a comprehensive analysis of the changes in cardiac metabolites and pulmonary transcripts of SU5416-Hypoxia (Su/Hx) rats treated with TMZ. Metabolomic analysis of the Su/Hx-induced PH hearts demonstrated that TMZ reduced the long-chain fatty acid concentration. Additionally, TMZ alleviated PH degree and excessive strain on the right heart functions in rats with Su/Hx-induced PH. We identified the candidate target genes for TMZ treatment during PH development. Interestingly, the mRNA levels of the fatty acid transporters were substantially downregulated by TMZ administration in the lungs with Su/Hx-induced PH. Notably, TMZ suppressed excessive proliferation of human pulmonary artery smooth muscle cells under hypoxic conditions. Our study suggests that TMZ ameliorates PH development by involving energy metabolism in the lungs and heart.