The top US general in Afghanistan relinquished command on Monday at a ceremony in the capital, the latest symbolic gesture bringing America's longest war nearer to an end even as the Taliban continue a bloody onslaught across the country.
General Austin "Scott" Miller — the highest-ranked officer on the ground in the war-torn nation — handed command to General Kenneth McKenzie, who will oversee remaining operations from a US-based headquarters.
Gen Miller has been in Afghanistan since 2018, but was charged more recently by commander-in-chief President Joe Biden with organising the final withdrawal of US troops, to be completed by the end of August.
The pace of the pullout — and multiple offensives launched recently by the Taliban — have raised fears that Afghanistan's security forces could be swiftly overwhelmed, particularly without vital US air support.
Mr Biden has made clear, however, that America's involvement in a war launched after the September 11, 2001 attacks has to end, and Afghans must chart their own future.
Most of the 2,500 US and 7,500 Nato troops who were in Afghanistan when Mr Biden detailed the final withdrawal in April have now gone, leaving Afghan troops to fight an emboldened Taliban seemingly bent on a military victory.
Peace talks between the insurgents and the government supposedly taking place in Doha have largely fizzled out.
"The command of this coalition has been the highlight of my military career," said Gen Miller, who survived a Taliban assassination attempt in 2018 that killed a senior Afghan official he was meeting with.
"I do know that the people of Afghanistan will be in my heart and on my mind, for the rest of my life," he added, after handing the coalition force flag to Gen McKenzie.
The US has already handed over to Afghan forces the vast Bagram Air Base, from where coalition forces carried out operations against the Taliban and jihadist groups for the past two decades.
About 650 American service members are expected to remain in Kabul, guarding Washington's sprawling diplomatic compound where Monday's ceremony took place.
Gen McKenzie, who praised Mr Miller for overseeing the withdrawal "safely and sensibly," said the American commitment to Afghanistan would continue despite the pullout.
"That we will do so from bases outside of Afghanistan indicates a change in posture but not a change in our resolve to support our partners," he said, as top Afghan officials and military officers attended the ceremony inside the heavily fortified green zone.
Gen Miller steps down at a time when the Taliban have captured a vast swath of territory, seizing dozens of districts, capturing key border crossings and even attacking a provincial capital in recent weeks.
Fighting continued across several regions of the country on Monday too, including in the southern province of Kandahar -- the birthplace of the hardline Islamist movement.
At Kandahar city's main hospital, scores of civilians wounded in the fighting were being treated on Monday.
"Now they are in need of blood, hope the youth will come forward and donate blood to save lives," said hospital director Daud Farhad.
But claims by the hardline group to control 85 percent of the country are impossible to verify independently — and strongly disputed by the government.
Last week in Moscow, a visiting Taliban delegation said the group now controls more than half the country's near-400 districts -- a claim steadfastly rejected by security force spokesman Ajmal Omar Shinwari.
He conceded a Taliban presence "in limited areas", but gave no alternative assessment of how much territory each side controlled.
Analysts say both sides exaggerate the territorial gains and casualties they inflict on each other, while playing down their own losses.
The situation has alarmed foreign nations, however, and on Sunday India became the latest country to evacuate its diplomats as security deteriorates.
Its foreign ministry said staff had been temporarily pulled from its consulate in Kandahar, where the Taliban are fighting with Afghan forces on the edge of the city.
Last week, Russia announced it had closed its consulate in the northern Afghan city of Mazar-i-Sharif, while China also evacuated 210 nationals from the country.