Government officials in a western Afghan province said on Thursday they had negotiated "an indefinite ceasefire" with the Taliban to prevent further attacks on the capital of the province.
The move came after fighters from the Islamist group secured complete control over all the districts in Badghis province, reflecting wider gains by the Taliban over territory and infrastructure in the weeks since US President Joe Biden announced the withdrawal of US troops by 11 September.
"Ten tribal elders had taken the responsibility of ceasefire, so they first talked to the Taliban, and then talked to the local government and both sides reached a ceasefire," the provincial governor, Husamuddin Shams, told Reuters.
The Taliban reached an agreement with the tribal elders to move to the outskirts of Qala-e-Naw, the capital of Badghis, Mr Shams said.
A spokesman for the Taliban denied they had agreed to a ceasefire but said they had left the city to avoid civilian casualties. "Qala-e-Naw is the only city in Afghanistan where the Taliban announced a ceasefire," said Abdul Aziz Bek, the head of the provincial council in Badghis. Afghan officials in the capital, Kabul, were not available to comment.
There were conflicting reports on Thursday about who was in control of a major trading town on the border with Pakistan. The Spin Boldak-Chaman border post is the second most important crossing on the Pakistan border and a major source of revenue for the Western-backed government in Kabul.
A senior Afghan government official said on Thursday security forces had retaken control of the town hours after the Taliban seized it on Wednesday.
Taliban spokesman Zabihullah Mujahid dismissed that and said his forces still held it.
"It is merely propaganda and a baseless claim by the Kabul administration," he told Reuters.
The defence ministry spokesman was not immediately available for comment.
Pakistan, worried about a spillover of fighting, has shut its side of the Spin Boldak-Chaman border, which lies on the main commercial artery between the second Afghan city of Kandahar and Pakistani ports.
Clashes have intensified
Clashes between the Taliban and government forces have intensified as US-led international forces have been withdrawing. The Taliban have captured several districts and border crossings in the north and west.
The government has accused the Taliban of destroying hundreds of government buildings in 29 of the country's 34 provinces. The Taliban deny accusations of extensive destruction by their fighters.
A senior Afghan government official in Kabul, Nader Nadery, said the security forces were working to push back Taliban fighters and regain control over 190 districts.
The deteriorating security situation has raised fears of a new Afghan refugee crisis. President Ashraf Ghani met regional leaders in Uzbekistan on Thursday and Pakistan said it would host a conference of senior Afghan leaders in an effort to find solutions.
Diplomatic efforts have focused on pushing the rival Afghan sides to make progress towards a ceasefire.
Pakistan was for years accused of backing the Taliban with the aim of blocking the influence of its old rival India in Afghanistan. But Pakistan denied that and now says it wants to encourage negotiations to ensure a peaceful outcome.
Pakistani information minister Fawad Chaudhry said on Twitter that Pakistan was arranging more talks and that important leaders including former President Hamid Karzai, who remains an influential figure, had been invited.
Mr Chaudhry said Taliban leaders would not be attending as Pakistan was holding separate talks with them.
Karzai and some top Afghan political leaders are expected to fly to Qatar this weekend for talks with members of the Taliban who have an office in the capital, Doha.
The Islamist militants ruled Afghanistan from 1996 until they were ousted in 2001, weeks after the 11 September attacks on the United States. They have fought since to expel foreign forces and topple the government in Kabul.