Nitroglycerin is a chemical compound commonly used as a vasodilator to treat heart conditions like angina. It works by dilating blood vessels to improve blood flow and oxygen supply to the heart. Nitroglycerin is also a key component in explosives due to its explosive nature.