The battle ended in a complete rout of the Ghurids, although Muhammad of Ghor managed to escape the debacle after the intervention by Uthman of Qarakhanid.
After expelling the Ghaznawids from their last bastion in 1186, the Ghurids achieved a landscape victory in 1192, against the forces of Chahamana king Prithviraja III in Second Battle of Tarain which opened the whole of Ganga valley which Muhammad and his slave generals pressed upon in subsequent years and reached as far as the Ganges Delta in Bengal.
Taking advantage of the civil war between Alauddin and his nephew Hindu Khan for the throne, the Ghurids successfully captured Nishapur, Merv, Tus and reached right up to Gorgan and Bisṭām.
[6] Despite this success, Alauddin tried to make cordial relations with the Ghurids (possibly to get rid from Qara Khitai supremacy) and wrote a letter to them to treat him as his son and offered to marry his mother Turkan Khatun to Muhammad of Ghor.
[8] Around the same time, Ghiyath al-Din died in 1203 due to illness in Herat and Muhammad succeeded him as the sole ruler of Ghurid dynasty.
[10] Muhammad in order to give a decisive blow to the Khwarezmian, besieged their capital Gurganz, possibly to completely annex their empire.
Thus, Qara Khitai's sent a large contingent of 40,000 soldiers under the command of Tayangu of Talas along with Qarakhanid ruler Uthman ibn Ibrahim of Samarkand and his cousin Taj al-Din Bilge Khan.
[12][13] Due to the hostile environment in Gurganz and on the encroachment of the Qara Khitai and Qarakhanid contingents, the Ghurids were forced to relieve the siege and start their retreat to Ghazna.
At this time, Uthman who according to Minhaj-i Siraj Juzjani didn't want the "Sultan of Islam to be captured by the infidels", intervened and asked Muhammad of Ghor to negotiate and surrender his possessions to escape alive.
[27] However, another rebellion occurred in his empire in the Salt Range by the Hindu Khokhars who disrupted Muhammad's communication between Lahore and Ghazni which forced him to move towards India again.
The Khwarezmian empire within a decade or so, reached up to the Indus River and captured the western frontier of Ghurids as well which included Ghazni, Kandahar and Kabul.