Using mass spectrometry-based targeted metabolomics, we aimed to determine the pattern of cardiac metabolic reprogramming and energetics in doxorubicin-induced heart failure. More importantly, we aimed to identify the potential effects of melatonin on cardiac metabolic reprogramming and energetics in doxorubicin-induced heart failure. Male Wistar rats (n = 18) were randomly divided into three groups (n = 6/group) to receive either (1) normal saline solution as a control, (2) 3 mg/kg/day of doxorubicin on Days 0, 4, 8, 15, 22, and 29, or (3) 3 mg/kg/day of doxorubicin on Days 0, 4, 8, 15, 22, and 29 plus 10 mg/kg/day of melatonin on Days 0-29. On Day 30, echocardiography was carried out and heart rate variability was analyzed for the evaluation of cardiac function. The rats were euthanized on the following day to enable the collection of ventricular cardiac tissue. Compared to the control group, the hearts of rats treated with doxorubicin alone exhibited impaired cardiac function, increased glucose and ketone body utilization, decreased fat utilization, decreased succinate oxidation, and decreased production of adenosine triphosphate. The cotreatment with melatonin could restore cardiac function, glucose and ketone body utilization, and adenosine triphosphate production in the heart. Interestingly, the cotreatment with melatonin led to an increase in cardiac fatty acid oxidation, branched-chain amino acid catabolism, and anaplerosis. All of these findings highlighted the potential efficacy of melatonin with regard to cardiac metabolic reprogramming and energetics. Our findings also suggested that melatonin could be considered as an adjunctive treatment for doxorubicin-induced heart failure in clinical practice.