A US-brokered ceasefire to end the Turkish offensive on Kurdish forces in Syria is a victory for President Recep Tayyip Erdogan but could be short-lived without an agreement with Damascus ally Russia, say analysts.
After US Vice President Mike Pence held talks with Erdogan on Thursday, the NATO allies announced a five-day suspension of the Turkish operation and the withdrawal from border areas of a Syrian Kurdish militia viewed by Ankara as "terrorists".
Erdogan won his key demands to sweep Kurdish fighters away and set up a "safe zone" that is 32-kilometres (20 miles) wide but whose length is yet to be defined.
The Turkish leader wants the area to extend eventually to 444 kilometres.
But whether the agreement holds depends on negotiations with Russia, which provides critical backing to Syrian leader Bashar al-Assad.
"Turkey looks like a short-term winner because of the fact that Ankara was able to break the YPG-US ties," said Soner Cagaptay, director for Turkey at the Washington Institute for Near East Policy.
The US move to arm Syria's main Kurdish force, the People's Protection Units (YPG), has long drawn Turkey's wrath as Ankara views it as a "terrorist" offshoot of the Kurdistan Workers' Party (PKK).
The PKK, blacklisted as a terror group by Ankara and its Western allies, has waged a bloody insurgency against the Turkish state since 1984.
But for the US, YPG fighters formed the bulk of the ground force in the fight against Islamic State jihadists.
Turkish forces launched the operation on October 9 after US President Donald Trump appeared to give a green light, only backtracking after a global outcry.
In a choice between fighting Turkish forces and their Syrian proxies, the YPG agreed to allow Assad's forces to deploy in areas that had been out of his control for several years.
'Big Victory' For Erdogan
Anthony Skinner, director at the risk assessment firm Verisk Maplecroft, said the deal "commits the United States to disarm the YPG and disable their fortifications and fighting positions - a demand Turkey has been clamouring for for years now."
"This is a win for President Erdogan. It confirms in writing the White House's acceptance of the Turkish army's control over territory in northeastern Syria," he told AFP.
Under the agreement which Ankara rejects calling a ceasefire, Turkey will suspend the operation for five days and end the assault after the YPG withdraws.
"We got exactly what we wanted out of the meeting" with Pence, a senior Turkish official told AFP, speaking on condition of anonymity.
"Turkey's military operation paid off. The terrorists will withdraw from the safe zone within 120 hours and Turkey will enforce the safe zone."
Turkish media also hailed the agreement as a victory for Erdogan.
"We won both at the table and on the field," said the pro-government Sabah daily.
Another Ankara-friendly newspaper, Yeni Safak, boasted of the "big victory" from the high-stake talks.
'Putin Will Call The Shots'
Analysts say this win could be short-lived despite offering some relief for Erdogan.
"The agreement will probably boost Erdogan's public popularity, which had been falling before he launched the military operation on 9 October," said Gareth Jenkins, analyst at the Institute for Security and Development Policy.
"But the boost is likely to be relatively short-lived. At some point, Turkey will have to halt its military operations without achieving the goals it has set for them," he said.
Skinner warned the deal may not mark the end of the Turkish operation in Syria because the army would continue targeting Kurdish militants both in Iraq and Syria "so long as their fighters pose an ongoing threat to Turkey's national security."
The five-day pause overlaps with Erdogan's meeting with Russian President Vladimir Putin in the Black Sea resort of Sochi next Tuesday.
Despite being on opposite ends of the Syrian conflict, Ankara and Moscow have been working together to find a political solution to the war.
Moscow is one of the few remaining allies of Assad's regime, while Ankara has backed rebels fighting for his ouster.
"The geographic extent of the Turkish operation is likely to be determined during the Erdogan's meeting with Putin," Ege Seckin, an analyst at IHS Markit, said.
"Putin will call the shots going forward," Seckin added.