Nitroglycerin is a medication used for the relief of chest pain (angina) and for heart-related conditions. It works by dilating the blood vessels to help increase blood flow and reduce the workload on the heart. It is available in various forms, such as tablets, sprays, and patches.