The Taliban insurgency intensified considerably in 2021, as US armed forces completed their withdrawal from the country by September. On 30 April, a bombing in Puli Alam killed about 30 people. On 8 May, the bombing of a secondary school in west Kabul killed about 45 people. Most casualties were female students, who were leaving the school at the time. No group so far has claimed responsibility for those two attacks. On 15 May, an ISIL bombing inside a mosque in Kabul killed 12 people. On 1 June, two ISIL bus bombings killed 10 people in Kabul. On July 5, 2021, Afghan soldiers were reported to have fled to Tajikistan to escape clashes with Taliban insurgents. The Taliban gained control of various towns throughout June and July, eventually resulting in the Fall of Kabul on 15 August. The war was declared over the same day, with the Taliban giving foreign forces until the 31st of August to leave the country. A small resistance force led by Ahmad Massoud was formed in the Panjshir Valley on 16 August. This led to a brief conflict with the new Taliban government, however, on 26 August, the two sides signed a peace treaty and agreed not to attack each other.
