The myofilament protein troponin I (TnI) has a key isoform-dependent role in the development of contractile failure during acidosis and ischemia. Here we show that cardiac performance in vitro and in vivo is enhanced when a single histidine residue present in the fetal cardiac TnI isoform is substituted into the adult cardiac TnI isoform at codon 164. The most marked effects are observed under the acute challenges of acidosis, hypoxia, ischemia and ischemia-reperfusion, in chronic heart failure in transgenic mice and in myocytes from failing human hearts. In the isolated heart, histidine-modified TnI improves systolic and diastolic function and mitigates reperfusion- associated ventricular arrhythmias. Cardiac performance is markedly enhanced in transgenic hearts during reperfusion despite a high-energy phosphate content similar to that in nontransgenic hearts, providing evidence for greater energetic economy. This pH-sensitive 'histidine button' engineered in TnI produces a titratable molecular switch that 'senses' changes in the intracellular milieu of the cardiac myocyte and responds by preferentially augmenting acute and long-term function under pathophysiological conditions. Myofilament-based inotropy may represent a therapeutic avenue to improve myocardial performance in the ischemic and failing heart.