http://www.nlm.nih.gov/medlineplus/druginfo/medmaster/a601048.html
National Library of Medicine, National Institutes of Health
The combination of ergotamine and caffeine is used to prevent and treat migraine headaches. Ergotamine is in a class of medications called ergot alkaloids. It works together with caffeine by preventing blood vessels in the head from expanding and causing headaches.