Caffeine contained in coffee can alleviate certain types of migraine (or better, headache) in its acute form and, for pharmacological purposes, it is often used in combination with an analgesic such as ibuprofen. However, chronic caffeine use and its drastic suspension may also be a primary cause of headaches (as if massive consumption of caffeine would become addictive);
moreover, scientific research has found a correlation between caffeine suspension and headaches ALSO in those who drink coffee with more moderation. Among other things, some studies have suggested that those who drink at least four cups of coffee a day (American coffee, not espresso coffee) are more prone to headache than non-consumers. This side effect, often associated with bad mood and alteration of cerebral blood flow, would be a facet of the physical dependence that caffeine exerts on the human organism.