The Battle at Waihind
Anandapala, his letter to Mahmud, and the battle on the Indus, 1008 to 1009
In the winter of 1008 to 1009, the Hindu Shahi king Anandapala sent his son Brahmanapala to hold the Indus at Waihind against Mahmud of Ghazni, and by the Ghaznavid court's own account the Shahi army nearly won. This lesson sets what Utbi and Gardizi record beside the later story of six allied kings and a fleeing elephant, and reads the letter in which Anandapala once offered to fight beside his enemy.
White Swords, Blue Spears

It is midwinter, at the turn of the year 1008 into 1009. The place is the river of Waihind. This is the Indus, at the old crossing by Udabhandapura, the Hindu Shahi capital that is today the village of Hund. On the plain beside the water stands the army of the Hindu Shahi kingdom. Its commander is a prince named Brahmanapala. His father, King Anandapala, has sent him to hold the river.
The best description of that army comes from the other side. Al-Utbi, a secretary at the court of Mahmud of Ghazni, wrote it down in Mahmud's own lifetime. He describes the Shahi line as a wall of colour. White swords. Blue spears. Yellow coats of mail. Elephants the colour of ash.
Coming toward them is Mahmud, sultan of the Ghaznavid state. His chroniclers say he left Ghazni on the last day of the month Rabi al-Akhir. Modern historians work that out as 31 December 1008, the dead of winter. Utbi makes a point of it: the sultan chose the hard road over the soft bed. Whatever this army was, Mahmud did not think it could wait for spring.
The battle will last from morning until evening. By Utbi's own account, the Shahi army will come close to winning it. So why does almost every retelling you will meet tell a different story, with six allied kings, a charge of thirty thousand hill fighters and an elephant that ran? And why had the king who sent this army once offered to fight beside Mahmud?
The Son Who Paid the Ransom
Anandapala came to the throne after a disaster. In November 1001 Mahmud had beaten and captured his father, Jayapala, near Peshawar. Jayapala was ransomed, went home, and ended his own life on a pyre. That story belongs to the previous lesson.