Therapeutically active compounds of formula (I): ##STR00001## wherein the variables shown in formula (I) are defined in the disclosure; and pharmaceutically acceptable salts and esters thereof. The compounds are potent inhibitors of the Na.sup.+/Ca.sup.2+ exchange mechanism.