Captopril works by blocking the action of the enzyme that converts angiotensin I to angiotensin II, a potent vasoconstrictor. By inhibiting this conversion, captopril helps to relax blood vessels, thereby lowering blood pressure and improving blood flow.