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.