In 997 CE, Sultan Mahmud Ghaznavi, took over the Ghaznavid dynasty empire established by his father, Sultan Sebuktegin, he conquered the Shahis in Kabul in 1005, and followed it by the conquests of northern Punjab region.
During the flourishing period of the Mughal dynasty,The Janjuas Rajputs chieftains were among the most prosperous and loyal vassals of the house of Babar.