President Trump told his Turkish counterpart Friday that the US would no longer supply arms to Syrian Kurdish fighters.

Turkish Foreign Minister Mevlut Cavusoglu said Trump informed President Recep Tayyip Erdogan of his decision during a telephone call.

“Our discomfort regarding the provision of weapons to the YPG was conveyed to Mr. Trump once again … Trump very clearly said he had given instructions to not provide weapons to the YPG,” Cavusoglu told a news conference in Ankara.

“We welcome the promise of not providing weapons to the YPG, and want to see it implemented practically.”

Turkey considers the Kurdish Syrian fighters, known by the initials YPG, terrorists because of their affiliation with outlawed Kurdish rebels in the country.

A US decision to arm the fighters soured relations between the two NATO allies.

“Mr. Trump clearly stated that he had given clear instructions and that the YPG won’t be given arms and that this nonsense should have ended a long time ago,” Cavusoglu said.

Earlier, Trump tweeted that he’d be speaking with Erdogan “about bringing peace to the mess that I inherited in the Middle East.”

Their discussion Friday came days after Erdogan attended a trilateral meeting with the Russian and Iranian leaders in Sochi, Russia, to promote a peaceful settlement in Syria.

Russian President Vladimir Putin won the backing of Turkey and Iran to host a Syrian peace congress, taking the central role in a major diplomatic push to end a civil war all but won by Moscow’s ally, President Bashar al-Assad.

Turkey has said it would not accept the presence of YPG representatives at the peace talks.

The US announced in May that it started distributing arms to Syrian Kurdish militia battling to help retake the city of Raqqa from ISIS, moving ahead with a war plan that angered Turkey.

At the time, a US official told Reuters that the distribution of the arms had been based on authority given by Trump.

Turkey views the YPG as the Syrian extension of the outlawed Kurdistan Workers Party, or PKK, which has fought an insurgency in southeast Turkey since 1984. It is considered a terrorist group by the US, Turkey and other European countries.

But the US has considered the YPG a valuable partner in the fight against ISIS in northern Syria.

Washington has said that arming the Kurds was necessary to recapturing Raqqa, the de facto capital of ISIS in Syria and a hub for planning attacks against the West.

Late last month, US-backed militias declared that Raqqa had finally been liberated after a four-month battle.