Spinach is rich in magnesium, riboflavin, and Q10 all of which have been shown to be effective migraine and headache reducers. Deficiency in these nutrients likely exacerbates and even causes headaches. Sources