The myocardium is metabolically flexible and can use fatty acids, glucose, lactate/pyruvate, ketones, or amino acids to fuel mechanical work. However, impaired metabolic flexibility is associated with cardiac dysfunction in conditions including diabetes and heart failure. The mitochondrial pyruvate carrier (MPC) is required for pyruvate metabolism and is composed of a hetero-oligomer of two proteins known as MPC1 and MPC2. Interestingly, MPC1 and MPC2 expression is downregulated in failing human hearts and in a mouse model of heart failure. Mice with cardiac-specific deletion of MPC2 (CS-MPC2-/-) exhibited loss of both MPC2 and MPC1 proteins and reduced pyruvate-stimulated mitochondrial respiration. CS-MPC2-/mice exhibited normal cardiac size and function at 6-weeks old, but progressively developed cardiac dilation and contractile dysfunction thereafter. Feeding CS-MPC2-/-mice a ketogenic diet (KD) completely prevented or reversed the cardiac remodeling and dysfunction. Other diets with higher fat content and enough carbohydrate to limit ketosis also improved heart failure in CS-MPC2-/-mice, but direct ketone body provisioning provided only minor improvements in cardiac remodeling. Finally, KD was also able to prevent further remodeling in an ischemic, pressure-overload mouse model of heart failure. In conclusion, loss of mitochondrial pyruvate utilization leads to dilated cardiomyopathy that can be corrected by a ketogenic diet.