During the summer of 2015, the Taliban advanced and attacked the city, which resulted in a battle for control of the city against Afghan forces. Tens of thousands of inhabitants were displaced internally by the fighting. On 28 September 2015 the Taliban flag was again raised in the city center and the Taliban managed to capture the city prison and free many prisoners. The Afghan Armed Forces counter-attacked and managed to re-capture the city in 15 days. The Taliban announced that, after achieving their objectives, they have withdrawn from the city's center. Zabiullah Mujahid, a Taliban spokesperson, said that their main object in leaving the city is to avoid civilian casualties from air raids. In April 2018 the Afghan Air Force conducted an airstrike that killed and injured dozens of civilians at a religious school in Kunduz. On 31 August 2019, the Taliban forces launched another attack on the city, setting off a major battle with local security forces.