A no calorie limit Mediterranean diet rich in olive oil is not a recipe for weight gain - and may actually be a better strategy than avoiding all fatty foods, research has shown.
The finding adds to the current controversy surrounding health advice which recommends low-fat diets.
Current guidelines are misguided because they do not differentiate between "good" and "bad" fats, it is claimed.
A total of 7,447 men and women took part in the new research in Spain between 2003 and 2010. All had Type 2 diabetes or were considered at high risk of heart disease, and 90% were overweight or obese.
Participants were randomly assigned to one of three diets - an unrestricted Mediterranean diet especially rich in olive oil, a similar diet with the focus on nuts, and a diet that generally avoided all kinds of fat.
After five years, all three groups were found to have shed a small amount of weight, but people on the olive oil-rich diet lost the most - an average of 0.88 kg (1.9 pounds).
Members of the low-fat group lost 0.60 kg (1.3 pounds) while those on the nut-rich diet were 0.40 kg (0.88 pounds) lighter.
Curbing fat consumption was the least effective way to trim "spare tyres". Waist circumference increased by 1.2cm in the low-fat group compared with 0.85cm in the olive oil group and 0.37cm in the nuts group.
The percentage of energy intake from protein and carbohydrates decreased in both Mediterranean diet groups.
Lead researcher Dr Ramon Estruch, from the University of Barcelona in Spain, said: "More than 40 years of nutritional policy has advocated for a low-fat diet but we're seeing little impact on rising levels of obesity.
"Our study shows that a Mediterranean diet rich in vegetable fats such as olive oil and nuts had little effect on bodyweight or waist circumference compared to people on a low-fat diet.
"The Mediterranean diet has well-known health benefits and includes healthy fats such as vegetable oils, fish and nuts. Our findings certainly do not imply that unrestricted diets with high levels of unhealthy fats such as butter, processed meat, sweetened beverages, deserts or fast-foods are beneficial."
The results are published in the journal The Lancet Diabetes & Endocrinology.
Commenting in the same journal, US nutrition expert Professor Dariush Mozaffarian, from Tufts University in Boston, said it was time "outdated" guidelines on fat consumption were swept away.
He maintained that current guidelines aimed at tackling obesity were as misguided as attempts to prevent heart disease by reducing total fat which overlook the effects of beneficial fatty acids.
"Dietary guidelines should be revised to lay to rest the outdated, arbitrary limits on total fat consumption," said Prof Mozaffarian.
"Calorie-obsessed caveats and warnings about healthier, higher-fat choices such as nuts, phenolic-rich vegetable oils, yoghurt, and even perhaps cheese, should also be dropped.
"We must abandon the myth that lower-fat, lower-calorie products lead to less weight gain."
Prof Mozaffarian added: "The fat content of foods and diets is simply not a useful metric to judge long-term harms or benefits. Energy density and total caloric contents can be similarly misleading.
"Rather, modern scientific evidence supports an emphasis on eating more calories from fruits, nuts, vegetables, beans, fish, yoghurt, phenolic-rich vegetable oils, and minimally processed whole grains; and fewer calories from highly processed foods rich in starch, sugar, salt, or trans-fat."
Leading British expert Susan Jebb, professor of diet and population health at Oxford University, said the research showed that dietary fat content had a "minimal effect" on body weight - about 0.1kg per year.
She added: "Overall, the differences between groups in terms of fat intake were relatively small and the weight changes, unsurprisingly, not very different ..
"If you increase the fat content of your diet with foods high in mono-unsaturated fat (eg olive oil) you may, or may not, lose a teeny bit more weight than a 'not-quite-so-high-fat' diet.
"It is impossible from this study to draw any conclusion about the impact of the low fat diets on body weight since each group consumed more than the UK average (35% fat) and way more than the World Health Organisation recommendation (30% fat)."
A highly controversial report from a group of experts published last month maintained that saturated fat did not cause heart disease and full-fat dairy foods, including milk, yoghurt and cheese, could actually protect the heart.
It also said the promotion of low-fat food had led to "disastrous health consequences" and should be reversed.
A number of the report's authors had links to the National Obesity Forum (NOF), among them the charity's chairman Professor David Haslam. Four NOF campaigners including deputy chairwoman Deborah Cook and clinical psychologist Dr Jen Nash resigned after the report was published.
Dr Alison Tedstone, chief nutritionist at Public Health England, said: "Diets high in fruit and vegetables, containing some meat, fish and unsaturated fats, such as olive oil, often described as a Mediterranean diet, tend to be associated with health benefits - particularly heart health.
"This is similar to UK Government advice to follow a diet consistent with the Eatwell Guide, where up to 35% of your calories can come from fats of which no more than 11% should be from saturated fats."