KYIV, Ukraine (AP) — The first ship carrying Ukrainian grain set out Monday from the port of Odesa under an internationally brokered deal to unblock the embattled country’s agricultural exports and ease the growing global food crisis.

The Sierra Leone-flagged cargo ship Razoni sounded its horn as it slowly departed with over 26,000 tons of corn destined for Lebanon.

“The first grain ship since Russian aggression has left port,” Ukrainian Minister of Infrastructure Oleksandr Kubrakov declared on Twitter.

Russia and Ukraine signed agreements in Istanbul with Turkey and the U.N. on July 22, clearing the way for Ukraine to export 22 million tons of grain and other agricultural products that have been stuck in Black Sea ports because of Russia’s invasion of Ukraine more than five months ago. The deals also allow Russia to export grain and fertilizer.

As part of the agreements, safe corridors through the mined waters outside Ukraine’s ports were established.

Ukraine and Russia are major global suppliers of wheat, barley, corn and sunflower oil, with the fertile Black Sea region long known as the breadbasket of Europe. The holdup of food shipments because of the war has worsened rising food prices worldwide and threatened hunger and political instability in developing nations.

“Today Ukraine, together with partners, takes another step to prevent world hunger,” Kubrakov said.

In Moscow, Kremlin spokesman Dmitry Peskov hailed the ship’s departure as “very positive,” saying it would help test the “efficiency of the mechanisms that were agreed during the talks in Istanbul.”

Under the agreements, ships going in and out of Ukrainian ports will be subject to inspection to make sure that incoming vessels are not carrying weapons and that outgoing ones are bearing only grain, fertilizer or related food items, not any other commodities.

The Razoni was expected to dock Tuesday afternoon in Istanbul at the entrance of the Bosporus, where joint teams of Russian, Ukrainian, Turkish and U.N. officials were set to board it for inspections.

More ships are expected to leave from Ukraine’s ports through the safe corridors. At Odesa, 16 more vessels, all blocked since the beginning of Russia’s invasion of Ukraine on Feb. 24, were waiting their turn, with others to follow, Ukrainian authorities said.

But some shipping companies are not yet rushing to export food across the Black Sea as they assess the danger of mines in the waters and the risk of Russian rockets hitting grain warehouses and ports.

U.N. Secretary-General Antonio Guterres said he hopes the shipments will “bring much-needed stability and relief to global food security especially in the most fragile humanitarian contexts.”

In an interview with Turkey’s state-run Anadolu Agency, Turkish Defense Minister Hulusi Akar warned that the global food crisis threatens to trigger “a serious wave of migration from Africa to Europe and to Turkey.”

Lebanon, the corn’s destination, is in the grip of a severe financial crisis. A 2020 explosion at its main port in Beirut shattered its capital city and destroyed grain silos. Lebanon mostly imports wheat from Ukraine but also buys its corn to make cooking oil and produce animal feed.

Kubrakov said the shipments will also help Ukraine’s war-shattered economy.

“Unlocking ports will provide at least $1 billion in foreign exchange revenue to the economy and an opportunity for the agricultural sector to plan for next year,” he said.

Hearing the ship sound its horn as it left port delighted Olena Vitalievna, an Odesa resident.

“Finally, life begins to move forward and there are some changes in a positive direction,” she said. “In general, the port should live its own life because Odesa is a port city. We live here. We want everything to work for us, everything to bustle.”

Yet the resumption of the grain shipments came as fighting raged elsewhere in Ukraine, with Russia pressing its offensive in Ukraine’s east while Ukraine tries to reclaim territory in the Russian-occupied south.

Ukraine’s presidential office said at least three civilians were killed and 16 wounded by Russian shelling in the Donetsk region over the past 24 hours.

Donetsk Gov. Pavlo Kyrylenko repeated a call for all residents to evacuate, emphasizing the need to remove about 52,000 children still in the region.

In Kharkiv, two people were wounded by a Russian strike in the morning. One was was struck while waiting for a bus, and the other when a Russian shell exploded near an apartment building.

The southern city of Mykolaiv also faced repeated shelling that ruined a building at a hospital and damaged ambulances, according to regional Gov. Vitaliy Kim. Three civilians were wounded in the Russian shelling elsewhere in the city, he said.

Soon after the grain shipment deal was signed, a Russian missile targeted Odesa. Analysts warned that the continuing fighting could still upend the grain deal.

“The departure of the first vessel doesn’t solve the food crisis; it’s just the first step that could also be the last if Russia decides to continue attacks in the south,” said Volodymyr Sidenko, an expert with the Kyiv-based Razumkov Center think tank.

___

Fraser reported from Ankara, Turkey. Jon Gambrell in Dubai contributed.