the shinwari and other tribes of the neighbourhood being no more disposed to accept the rule of ali ahmad khan (who had declared himself amir at jalalabad when habibullah entered kabul) than that of amanullah, they inflict a severe defeat on him at jagdalak. at about the same time tribesmen enter and plunder jalalabad. a powder magazine is blown up in the course of the plundering, killing hundreds of people, and the town is reduced nearly to ruins. the tribes which supported ali ahmad now offer their allegiance to the amir of kabul, but the rest remain independent, and commence to quarrel with one another. ali ahmad makes his way to kandahar, where he is first imprisoned by amanullah but afterwards released.