An acute migraine is due to vasodilation which can cause pain. it can be treated with vasoconstrictors like serotonin 1B/D agonists (Naratriptan, Sumatriptan and Rizatriptan). Ergovine and ergotamine also both cause vasoconstriction which reduces the pain in migraines, and cluster headaches and they fall under the ergot alkaloid.