retreat. However, he was chased on his way to Firuzkuh and was decisively defeated in the Battle of Andkhud in 1204 by the combined forces of Qara Khitai and Kara-Khanid Khanate under Taniku and Uthman ibn Ibrahim. He was allowed to return to his capital, after paying a heavy ransom to the Qara Khitai general Taniku (Tayangu) which included several elephants and gold coins. According to Minhaj al-Siraj, the negotiations between Muhammad of Ghor and Taniku were arranged by Uthman ibn Ibrahim of Samarkand who do not want the "Sultan of Islam" to be captured by the infidels. Following the defeat, the Ghurids lost the control over most of the Khurasan except Herat and Balkh. Thus, Muhammad of Ghor of necessity agreed for a cold peace with the Khwarezmians. Final days After the disaster of Andkhud and the subsequent rumours of Muhammad of Ghor's death in the battle led to widespread mutiny throughout the Ghurid empire, most notably by Aybek Beg, Husain Kharmil and by the governor of Ghazna Yildiz as well. (not Taj al-Din Yildiz who was in charge of Kirman then) Muhammad of Ghor first marched to Multan instead of Ghazna, where his slave general Aybek 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 of Ghor defeated Aybek decisively and captured him in the battle. Afterwards, he marched towards Ghazna, 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 of Ghor 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 Khurasan. He ordered Baha al-Din Sam II to construct boat bridge across the river Oxus to facilitate the march of his armies in Transoxiana. However, soon another political unrest occurred which turned him towards Punjab again where he was eventually assassinated. Campaign against Khokhars The Khokhar tribe whose influence extended from the lower Indus until Siwalik hills, arose in the wake of Muhammad of Ghor's rout near Amu Darya and rebelled by disrupting the Ghurid communication chain between Lahore and Ghazni along