This medication is used to relieve chest pain (angina) in people that have a certain heart condition (coronary artery disease). It may also be used before physical activities (such as exercise, sexual activity) to help prevent chest pain.