Dihydroergotamine mesylate is a medication used to treat migraines and cluster headaches. It works by constricting blood vessels in the brain, reducing the intensity of headaches. This medication is typically administered through injection or nasal spray. It is important to follow the prescribed dosage and consult with a healthcare professional before using dihydroergotamine mesylate.