An account of the battle between the invading Turkic Ghaznavids and the Shahi kingdom was given by Al-Utbi in Tarikh Yamini.[4] According to Al-Utbi, Mahmud pitched his tent outside the city upon reaching Peshawar. Jayapala avoided action for some time waiting for reinforcements, and Mahmud then took the decision to attack with swords, arrows, spears. Jayapala moved his cavalry and elephants to engage his opponent, but his army was decisively defeated.[5]