No one knows exactly what causes migraines, but they are felt to be vascular headaches, related to widening and narrowing of blood vessels in the head.
What is well-known is that migraines can be triggered by all sorts of things - certain foods, smells, activities, drugs, etc. - which aren't always "unhealthy." being able to identify and avoid triggers
is one of the best treatments for migraines.