The region became part of the Ghaznavid Empire in the 10th century. Sabuktigin annexed the land all the way west of the Neelum River in Kashmir. "The Afghans and Khiljies who resided among the mountains having taken the oath of allegiance to Sabuktigin, many of them were enlisted in his army, after which he returned in triumph to Ghazni." The Ghurids succeeded the Ghaznavids and expanded the Islamic empire further into Hindustan. The region around Jalalabad later became part of the Khalji territory, followed by that of the Timurids.