Russian President Vladimir Putin, right, and Turkish President Recep Tayyip Erdogan shake hands after their joint news conference following their talks in the Bocharov Ruchei residence in the Black Sea resort of Sochi, Russia, on Tuesday. Erdogan says Turkey and Russia have reached a deal in which Syrian Kurdish fighters will move 18 miles away from a border area in northeast Syria within 150 hours. Sergei Chirikov/Pool Photo via Associated Press

ANKARA, Turkey — Russia and Turkey announced an agreement Tuesday to jointly patrol almost the entire northeastern Syrian border after the withdrawal of Kurdish fighters, cementing the two countries’ power in Syria in the wake of President Trump’s abrupt withdrawal of U.S. forces.

The announcement came as Kurdish fighters completed their pullout from a section of the Syrian-Turkish border as required by a U.S.-brokered cease-fire that was set to expire Tuesday night. Together the arrangements transform the map of northeast Syria, leaving Turkey in sole control over one section in the middle of the border, while Turkey, Russia and the Syrian government will have hands in the rest.

The deployments replace American soldiers who for five years battled alongside Kurdish-led fighters and succeeded in bringing down the rule of the Islamic State group across a third of Syria at the cost of thousands of Kurdish fighters’ lives.

The American pullout has proven chaotic and stumbling. It ran into a new hitch when neighboring Iraq said Tuesday that the American forces did not have permission to stay on its territory. The Iraqi announcement seemed to contradict U.S. Defense Secretary Mark Esper, who a day earlier said the forces leaving Syria would deploy in Iraq to fight the Islamic State group.

Related

Presidents Vladimir Putin of Russia and Recep Tayyip Erdogan of Turkey announced their agreement after six hours of talks and poring over maps of Syria at the Black Sea resort of Sochi. Under the 10-point deal, Kurdish fighters would have 150 hours starting at noon Wednesday — meaning, until next Tuesday at 6 p.m. — to withdraw from the border.

Russian and Syrian government forces would move into that area immediately to ensure the Kurdish fighters pull back 20 miles from the border. Then at the end of the 150 hours, Russian-Turkish patrols would begin along a 6-mile wide strip of the border.

The exception would be the region around the town of Qamishli at the far eastern end of the border, which has some of the densest Kurdish population. Russian and Turkish officials did not immediately say what the arrangement would be around Qamishli.

“I believe that this agreement will start a new era toward Syria’s lasting stability and it being cleared of terrorism. I hope that this agreement is beneficial to our countries and to our brothers in Syria,” Erdogan said.

Turkey will keep control of the section in the center of the border that it captured in its invasion that began Oct. 9. That is the territory that Kurdish fighters withdrew from under the U.S.-brokered cease-fire. It extends roughly 75 miles wide and 20 miles deep between the Syrian border towns of Tal Abyad and Ras al-Ayn.

A senior Kurdish official, Redur Khalil, confirmed his forces had entirely left that area. But he said Turkish troops and their allies were continuing military operations in northeastern Syria outside that withdrawal zone.

The Kurdish-led forces notified the White House of the completed withdrawal in a letter, a senior Trump administration official said, speaking on condition of anonymity to discuss the contents of the letter.

After the U.S. announced its pullout earlier this month, Turkey launched its invasion, saying it wanted to carve out a safe zone cleared of Kurdish fighters whom it considers terrorists. Turkey also plans to settle many of the 3.6 million Syrian refugees on its soil in that zone, which is the heartland of Syria’s Kurdish minority.

For the Kurds, a Turkish takeover would mean the crushing of the self-rule they have carved out in the northeast amid Syria’s civil war. They also fear massive demographic change, as Kurdish civilians flee Turkish control and mainly Arab Syrian refugees move in.

The new agreement aims to ease those fears by giving Russia and its ally, the Syrian government, control over much of the area, with the Turkish patrols limited to closer to the border. That may prevent a massive flight of civilians but would be a heavy blow to Kurdish autonomy dreams.

The Russia-Turkey deal goes a considerable way to restoring the control of Moscow’s ally, the Syrian government, across much of the northeast.

Syrian President Bashar Assad has vowed to reunite all the territory under Damascus’ rule. On Tuesday, Assad said he was ready to support any “popular resistance” against Turkey’s invasion.

Erdogan is “a thief,” Assad told troops during a visit to the northwestern province of Idlib. “He stole the factories and the wheat and the oil in cooperation with Daesh (the Islamic State group) and now is stealing the land.”

“We are in the middle of a battle and the right thing to do is to rally efforts to lessen the damages from the invasion and to expel the invader sooner or later,” Assad said.

Assad’s visit to Idlib underlined Damascus’ goal of regaining the border. Idlib is adjacent to a border enclave that Turkey captured several years ago in another incursion. Turkey also has observation points inside Idlib, negotiated with Russia, to monitor a cease-fire there between the government and opposition fighters and jihadi groups.

He said his government had offered clemency to Kurdish fighters — whom it considers separatists — to “ensure that everyone is ready to resist the aggression” and fight the Turkish assault.

Syrian state media reported, meanwhile, that government forces entered new areas in Hassakeh province at the far eastern end of the border, under the arrangement with the Kurds.