In 1387, Timur attacked
Isfahan in the
Siege of Isfahan (1387). The governor, Muzaffar-i Kashi, gave the keys to the city. When the city revolted against Timurid taxes, Timur ordered a slaughter of the population. The Muzaffarid ruler
Zain al-Abidin fled to his capital Shiraz, with the intent of reaching Baghdad. On the way, he was imprisoned by his brother Shah Mansur. Timur easily captured Shiraz. Shah Mansur then submitted to Timur, and Timur installed in Shiraz Nusrat al-DIn Shah Yahya, a nephew of Shah Shoja. Timur left for Tansoxonia, to face an incursion by
Tokhtamish. With support from the
Jalayirid Sultanate, Mansur established himself as an independent ruler in
Shushtar. Meanwhile Shah Mansur tried to reinstate the Muzaffarid state and managed to recapture Shiraz, from which Shah Yahya fled, but failed to take Isfahan. In contrast, Zain al-'Abidin managed to escape and was welcomed by the population of Isfahan. Zain al-'Abidin tried to form an alliance against Shah Mansur, but he was defeated in battle. When trying to flee into Khurasan, he was captured by the local ruler Musa Jaukar, who remitted him to Shah Mansur, who had him imprisoned and blinded in Qal'a-yi Safid. ==Second Timurid offensive (1392-93)==