Muhammad marched from
Ghazni and captured
Bhatinda in 1190 which was under the control of the
Chahamana (Chauhan) Rajput clan who emerged as the leading power of northern India in the later twelfth century. The Chahamana ruler of Ajmer,
Prithviraj Chauhan (c. 1166–1192), aided by his Rajput allies gathered a vast army of 100,000 lancers and advanced to dislodge the Ghurid garrison in Bhatinda. In a decisive battle fought north of Delhi in
Tarain, the outnumbered Ghurid forces were completely routed by the forces of Prithviraj. Muhammad was himself wounded in personal combat with Govind Rai of Delhi. However, he was carried away from the battlefield by a Khalji stripling. The Rajputs, however did not chase the Ghurids in their retreat and followed up their victory by laying siege to the fort of Tabarhind (under possession of Mu'izz's general Qazi Ziauddin Tulaki) which was captured after a long siege of thirteen months. After the disaster of Tarain, Muhammad began his preparations to advance once more in the Chahamana kingdom and took an oath that he will not "visit his wife" and "change his clothes" till he avenge his defeat. He raised a vast army of Tajik, Turkic and Afghan troopers and advanced again in 1192 with an army consisting of 120,000 to 130,000 horsemen. In the
Second Battle of Tarain (1192), Prithviraj Chauhan fell for Muhammad Ghori's diplomatic deception, accepting a truce. However, Ghori exploited the opportunity, launching a surprise attack before sunrise, leading to Prithviraj's defeat and Ghori's decisive victory after the final assault by their contingent of 10,000
mounted archers under
Husain Kharmil which decided the issue. Govindaraja of Delhi along with the
Guhila Samant Singh of
Mewar were among the slains. Prithviraj was captured and summarily executed. The Ghurids penetrated into the core kingdom of the Chahamanas and annexed whole of their Sapādalakṣa territory including
Ajmer. However, the Ghurids, as corroborated by the numismatic evidences, reinstated Prithviraja's minor son
Govindaraja IV as their de facto ruler on the condition of tributary. The Ghurids followed their victory by sacking
Ajmer in the course of which they massacred several civilians, took many as
slaves and destroyed several Hindu
temples of
Ajmer. The decisive battle of Tarain is regarded as a landmark event in the Medieval India, which led to the destruction of Rajput powers for a while and laid the foundation of the
Muslim rule in the Indian Subcontinent. ==Further campaigns==