Timeline: Afghanistan since the Taliban victory
As at least 32 die in a bombing at a Shiite mosque in the southern city of Kandahar -- the second major attack on the minority in a week -- we look at Afghanistan since the Taliban stormed back to power.
On August 15, Taliban fighters take Kabul after a lightning offensive launched in May as the United States and NATO began withdrawing troops.
In the space of 10 days, the Islamists seize a string of other cities, meeting little or no resistance in a staggering rout.
Officials flee. Ex-president Ashraf Ghani escapes to Abu Dhabi, later saying he left to avoid a "flood of bloodshed".
In the following days, tens of thousands of terrified Afghans and foreigners rush to Kabul airport to escape Taliban rule.
Under growing criticism, US President Joe Biden insists he has no regrets about the withdrawal and says American troops cannot defend a nation whose leaders "gave up and fled".
China becomes the first country to say it is ready to work with the Taliban. It later accuses Washington of "leaving an awful mess".
The European Union says the bloc will have to talk to the Islamists.
Russian President Vladimir Putin appeals for the world to help prevent the "collapse" of the country following the Taliban takeover.
The Taliban tell civil servants in Kabul to resume their duties "without any fear".
At their first news conference since seizing power, they say they will let "women work in accordance with the principles of Islam".
Some girls return to school.
Taliban co-founder Mullah Abdul Ghani Baradar returns to Afghanistan from Doha, and within hours the group says it will be "different" this time.
Biden calls the emergency evacuation from Kabul's airport one of the most "difficult" airlifts ever.
Conditions deteriorate, with vast crowds crushed together begging to be let inside.
On August 26, a suicide bomb rips through the crowds outside, killing more than 100 people, including 13 US troops.
The Islamic State group's chapter in Afghanistan and Pakistan, rivals of the Taliban, claim responsibility.
Three days later, the US says it carried out an air strike on an IS-prepared car bomb in Kabul. It later emerges it hit the wrong target, killing 10 civilians including six children.
Meanwhile in the rugged Panjshir Valley north of Kabul, a mixture of anti-Taliban militia fighters and former Afghan security forces say they will hold out "long-term" if necessary.
But the resistance crumbles after a multi-pronged Taliban offensive on August 30.
The Taliban celebrate as the last American forces leave on August 30.
The US say they airlifted more than 123,000 people out of Kabul including US citizens, interpreters and others who supported the US mission.
On September 7, the Taliban announce their new interim government, with hardliners in all key posts and no women, despite previous promises to form an inclusive administration.
The move sparks protests in Kabul and Herat, where two people are shot dead.
The Islamic State group claims responsibility for a suicide attack near a Kabul mosque that kills five on October 3 hours after the Taliban said they had destroyed an IS sleeper cell in the city.
Meanwhile, the United Nations warns that Afghanistan's humanitarian crisis is growing worse.
Blasts tear through a Shiite mosque in Kandahar during Friday prayers, killing at least 32 people and injuring 53 others.
It comes a week after scores died in a suicide attack at another Shiite mosque in the northern city of Kunduz claimed by IS.