Isosorbide dinitrate is used to prevent chest pain (angina) in patients with a certain heart condition (coronary artery disease). This medication belongs to a class of drugs known as nitrates. It works by relaxing and widening blood vessels so blood can flow more easily to the heart