Which two Hindu Shahi rulers did Mahmud defeat to gain access to the Indus plains?
Mahmud defeated the Hindu Shahi ruler Jayapala in the first decade of the eleventh century. He then defeated Jayapala's son Anandapala in 1008, gaining access to the Indus plains.