Eating a Mediterranean-style diet  packed with fruits, vegetables, legumes, nuts, olive oil and fish  is good for your heart, many studies have found. Now scientists are suggesting the diet may be good for your mental health, too.

A study of over 10,000 Spaniards followed for almost four and half years on average found that those who reported eating a healthy Mediterranean diet at the beginning of the study were about half as likely to develop depression than those who said they did not stick to the diet.

All of the participants were free of depression when they were recruited to the study, and each filled out a 136-item food frequency questionnaire when they joined. Based on their self-reported dietary habits, they were assigned a score between 0 and 9, with the highest score reflecting the closest adherence to a Mediterranean diet.

Over time, those who had scored between 5 and 9 on the Mediterranean diet were 42 percent to 51 percent less likely to develop depression, the study found, than those who scored between 0 and 2.