Enalapril works by inhibiting the angiotensin-converting enzyme (ACE), which is responsible for the conversion of angiotensin I to angiotensin II. Angiotensin II is a potent vasoconstrictor that increases blood pressure by narrowing blood vessels. By blocking this conversion, enalapril reduces the levels of angiotensin II, leading to vasodilation and decreased blood pressure.