BEIRUT/ANKARA (Reuters) - The Syrian Kurdish YPG militia said on Tuesday its military advisers would leave Syria’s Manbij, a day after Turkey and the United States reached an agreement for administering the area that includes a longstanding Turkish demand the YPG withdraw.

A road sign that shows the direction to Manbij city is seen in the northern Syrian town of al-Bab, Syria March 1, 2017. REUTERS/Khalil Ashawi

Under the roadmap endorsed by Ankara and Washington for Manbij, near Syria’s northern border with Turkey, the two nations would jointly maintain security and stability there.

Turkey sees the YPG as a terrorist group and an extension of the outlawed Kurdistan Workers Party (PKK), which has waged a three-decade insurgency on Turkish soil. Washington views the YPG as a key ally in the fight against Islamic State.

In a statement, the YPG said its fighting forces had withdrawn from Manbij in November 2016 shortly after Islamic State was defeated there, but military advisers which had remained to work with the Manbij Military Council would now also withdraw.

The YPG added that its forces remained willing to help the people of Manbij “should it be needed”.

In Washington, U.S. officials welcomed the announcement.

“Those advisers are largely there to ensure that if there was a military offensive, they would be there to defend the city,” a U.S. official told reporters. “Without the threat of a military offensive, the situation is different.”

“So obviously we encourage that announcement and we’ll continue to work with all sides to implement the roadmap as it was agreed yesterday by the secretary and foreign minister.”

The U.S. officials, speaking on customary condition of anonymity, did not give a timeline for the roadmap, saying details still need to be negotiated and implementation will be based on developments on the ground.

Turkish Foreign Minister Mevlut Cavusoglu said on Tuesday YPG personnel withdrawing from Manbij would be disarmed and sent east of the Euphrates River.

TURKISH ANGER

Ankara has been angered by U.S. support for the YPG-dominated Syrian Defence Forces in northern Syria and pledged earlier this year to drive the Kurdish militants from Manbij, raising the possibility of confrontation with U.S. forces stationed alongside them.

The Pentagon has long feared that Manbij could become a flashpoint in Syria, with U.S.-backed forces who cleared the city of Islamic State fighters clashing with Turkish forces. That would put Washington in the unenviable position of either fighting a NATO ally or abandoning its proxy forces in Syria.

At a meeting in Washington on Monday, Cavusoglu and U.S. Secretary of State Mike Pompeo agreed a roadmap for cooperating over Manbij at a time of considerable strain in bilateral ties over wider Syria policy and over Washington’s decision in December to move its embassy in Israel to Jerusalem.

Speaking in Turkey’s southern province of Antalya on Tuesday, Cavusoglu said that joint preparatory work on the roadmap would begin in 10 days and implementation would be carried out within six months.

He said that in future the model should also be applied to Syria’s Raqqa, Kobani and other areas controlled by the YPG.

“The YPG is a terrorist organization and cannot have any role in any city. We cannot hand over a region or city to a terrorist organization,” Cavusoglu said.

He said he recognized that Kurds who are not part of the YPG could remain in these areas and said he aims to return the “population structure” of Manbij to what it was “before the YPG’s arrival”.