The Board after Mahmud
1030 to 1175: the fort that fell, the kings who took it back, and the frontier that held at Lahore
In the winter of 1037 the Ghaznavid sultan Masud stormed Hansi, and by 1043 a coalition led by the Raja of Delhi had taken it back. This chapter opener reads what each source really records of that recovery, then sets out the board for the next 130 years: Ghaznavid Lahore on one side, the Tomaras, Chahamanas, Gahadavalas, Chaulukyas, Paramaras and Kalachuris on the other, and a new power rising in Ghur by 1175.
The Virgin Fort
It is the third week of December 1037. An army from Ghazni has pitched its camp under the walls of Hansi, a fort on the dry plain north-west of Delhi. Its commander is Masud, the son of Mahmud of Ghazni. He has been sultan since his father died seven years ago.
Masud has come a long way for this fort. On the march he fell ill beside the Jhelum river for fourteen days. In a fit of repentance he swore off wine and had his whole store of it poured into the river. Hansi is known across Hindustan as "The Virgin", because no army has ever taken it.
The man who tells us this travelled with the camp. Abu'l Fazl Baihaqi was a secretary in Masud's office of letters, and he wrote down the march day by day. He records fights under the walls "that could not be exceeded for their severity". Of the defenders he writes: "The garrison made desperate attempts at defence, and relaxed no effort."
After about twelve days, Masud's men sprang mines under the wall in five places. The wall came down. The fort was stormed in the first days of 1038. Baihaqi records that the defenders were killed and their women and children carried off as captives.

One more detail in Baihaqi matters more than the fall of the fort. Back on the Jhelum, letters had reached the camp from Khurasan, the Ghaznavid lands far to the west. Baihaqi calls them "all of them important". Masud "cared nothing for them" and sent them on to his minister. Six years later Hansi was in Indian hands again. Those unread letters are part of the reason.
The Letters He Did Not Read
Masud left Hansi in early January and reached Ghazni through a pass buried in snow. Worse letters followed him. While he was away in India, Turkoman horsemen had raided his towns in Khurasan. These were the Seljuqs, a Turkish clan who would soon rule Iran and Baghdad. Baihaqi does not soften it: