the exact cause of migraines is unknown, although they are thought to be the result of abnormal brain activity temporarily affecting nerve signals, chemicals and blood vessels in the brain.
It's not clear what causes this change in brain activity, but it is possible that your genes make you more likely to experience migraines as a result of a specific trigger.