ACE inhibitors block the action of the angiotensin converting enzyme, which is responsible for the conversion of angiotensin I to angiotensin II. By reducing the levels of angiotensin II, these medications help to dilate blood vessels, reduce blood volume, and lower blood pressure. This mechanism is beneficial in treating hypertension and heart failure and in preventing stroke and heart attack.