A number of studies have found that adults who eat more fruit and vegetables sleep better than others.
While those who consume more fast food and soft drinks are more likely to have sleep problems.
This is particularly true for people who eat a Mediterranean diet, which is rich in vegetables, fruit, nuts, legumes, whole grains and low-fat dairy products.
While those who sleep less than five hours a night have been found to have lower levels of iron, zinc, phosphorus and magnesium, as well as vitamin C, lutein and selenium, than those who sleep more.
However, it is very difficult to establish a precise cause-and-effect relationship, so most studies are not clear whether eating better leads to better sleep.
Yet we are more likely to eat junk food when we are tired, and this can affect sleep quality.
Young men in Sweden had brain waves altered and their sleep was impaired when they ate high-fat and sugary foods.
But when they ate low-fat and sugary foods, their sleep improved.
While there is a lot of evidence that supports a link between healthy eating and sleep, some studies suggest that eating five servings of vegetables a day improves sleep.
A similar study of 1,000 young people ate three servings of fruit and vegetables a day.
But when they ate six servings of fruit and vegetables a day, the women’s insomnia improved after three months.
Not only did they sleep better, they also fell asleep faster.
In addition, another trial found that when children ate at least five servings of green vegetables a week, they were more active and slept better.
Researchers say this may be due to the high amount of vitamins in green vegetables, especially vitamins A and C, which help the body digest minerals, and minerals like iron, which can help with sleep.