A lack of nutrients and vitamins may be to blame (Picture: Getty)

Headaches may one day throw activities out the window.

They are painful, affect our ability to concentrate and significantly disrupt our daily lives.

Migraines in particular are very tiring and can even cause people to lie in a dark room for a few hours until they die.

But a new study has found they may not be as random as we might think, and what we eat may actually play a big part in it.

In the study, published by Nutritional Neuroscience, researchers looked at historical data and found that mild, moderate and severe malnutrition were associated with more frequent severe headaches in the participants.

The researchers also found that those who suffered from severe headaches and migraines often did not get their vitamins and nutrients.

These individuals also drank more coffee and consumed more theobromine – a property found in chocolate.

As a result, the team concluded that diet was linked to migraine risk and severity.

“At first glance, the finding that moderate to severe malnutrition is associated with migraines doesn’t surprise me,” says Sydney Greene, MS, RD.

Migraines can be caused by low blood sugar.

“Long breaks between meals, skipping meals, or skipping important food groups, especially carbohydrates, can cause blood sugar to plummet.

“In addition, long-term malnutrition usually leads to vitamin and mineral deficiencies — and deficiencies in some vitamins (usually the B vitamins) and the mineral magnesium can contribute to more severe migraines.”