Nicardipine works by blocking calcium channels in vascular smooth muscle cells, leading to vasodilation and decreased peripheral resistance. This mechanism reduces the workload of the heart and improves oxygen supply to the myocardium, making it effective in treating angina and hypertension.