9 Foods You Can Eat That Prevent Headaches 6. Almonds Since almonds are rich in magnesium and selenium, they provide relief from headaches and migraines. Magnesium is especially helpful for women during their menstrual cycle as it calms the nerves. Previous Next Pages: 1 2 3 4 5 6 7 8 9 headach 2015-07-27 ash