Methods and compounds for preventing or reducing the toxic side effects of cardiac glycosides by inhibiting the mitochondrial sodium-calcium exchanger (mNCE) are provided. Methods and compositions for preventing or reducing the occurrence of conditions associated with heart failure, including, but not limited to, sudden cardiac death and contractile decompensation, by inhibiting the mNCE also are provided.