Prithviraj Chauhan's forces had defeated the Ghurids at the First Battle of Tarain in 1191. The Ghurid king Mu'izz al-Din, who was seriously injured in the battle, returned to Ghazni, and made preparations to avenge his defeat.