Muhammad of Ghor
Final days

After the disaster of Andkhud and the subsequent rumours of Muhammad's death in the battle led to widespread insurrections throughout the Ghurid Sultanate, most notably by Aibak Beg, Husain Kharmil and by the governor of Ghazni, Yildiz, as well. Muhammad first marched to Multan instead of Ghazni, where his slave general Aibak Beg (who rescued him in Battle of Andkhud) assassinated the Ghurid governor Amir Dad Hasan in a personal meeting and issued a fake decree of him being appointed by Muhammad as the new governor of Multan. Muhammad defeated Aibak Beg decisively and captured him in the battle. Afterwards, he marched towards Ghazni, where Yildiz mutinied earlier and seized the city. On the advance of a vast army of Muhammad of Ghor, foreseeing an inevitable defeat, Yildiz and his aristocrats surrendered to Muhammad, who pardoned them.

Thus, Muhammad successfully restored his empire to stability, after suppressing the mutineers and turned his attention towards the affairs of Central Asia again to avenge the rout at Andhkhud and to reclaim his holdings in Khurasan. Accordingly, by July 1205, Muhammad's governor of Balkh besieged Tirmidh in the present-day Uzbekistan and captured the city following a short siege, destroying the Qara Khitai garrison stationed there and placed it under his son. Afterwards, Muhammad ordered his viceory in the Bamiyan Valley, Baha al-Din Sam II to construct a boat bridge and a castle across the river Oxus to facilitate the march of his armies in Transoxiana. Muhammad also directed his Indian soldiers to join him in the expedition against the Qara Khitais. However, soon another political unrest broke out which turned Muhammad towards Punjab again where he was eventually assassinated.
combination:repeat_prompt