ACE and heart failure: ACEIs are primarily used to treat hypertension and heart failure, preventing ACE-mediated conversion of angiotensin I to angiotensin II and the resulting increase in blood pressure.