Some people find relief from migraines by taking certain dietary supplements like magnesium, riboflavin (vitamin B2), and coenzyme Q10.