ROME (Reuters) - World food prices posted their biggest monthly rise for four years in June, buoyed by a surge in sugar and increases for most other edible commodities, the United Nations food agency said on Thursday.

A farmer winnows paddy crops at a field on the outskirts of Agartala, India, November 12, 2015. REUTERS/Jayanta Dey/File Photo

Food prices have been gaining ground since hitting a near seven-year low in January after four straight annual declines, and the United Nations Food and Agriculture Agency (FAO) now expects them to be stable for the next decade.

The 4.2 percent gain from May was the fifth increase in a row for the index, which measures monthly changes for a basket of cereals, oilseeds, dairy products, meat and sugar.

Food prices on international markets are now just 1 percent below the same month last year, the FAO said.

The FAO’s forecast for 10 years of stable prices, released on Monday, reinforced the view that agricultural commodities are emerging from an era of intense volatility unleashed by price spikes and supply tensions in 2007-2008.

Sugar prices rose 14.8 percent in June as heavy rains hampered sugar harvesting and affected yields in the world’s largest producer, Brazil, the FAO said.

Wet weather also reduced the amount of sugar that could be recovered from each tonne of cane, prompting producers to divert more sugarcane to ethanol production, boosting prices further.

Vegetable oil prices defied the upward trend to slip 0.8 percent, led by palm oil, which saw subdued global import demand and a seasonal recovery in production in Indonesia and Malaysia.

The FAO raised its forecast for world cereal production in the 2016-17 season to 2.544 billion tonnes, 15.3 million tonnes higher than last year but still below 2014’s record harvest.

The upgrade is mainly based on improved prospects for wheat production, now forecast to hit 732 million tonnes due to better weather in the European Union, Russia and the United States.

Wheat utilization is also set to rise, the FAO said, as demand grows for its use in animal feed in the EU, Indonesia and the United States, but also for food consumption and industrial usage.

This higher consumption means global stocks by the end of the season in 2017 will be 1.5 percent below the opening level.