قتيبة بن مسلم الباهلي
In the early 8th century, Khujand was captured by the forces of the Umayyad Caliphate, under Qutayba ibn Muslim. The city was incorporated into the Umayyad and subsequent Abbasid Caliphates, and a process of Islamicization began. In the late 9th century, however, it reverted to local rule and was incorporated into the Samanid Empire. It came under the rule of the Kara-Khanid Khanate in 999 and after the division of Kara Khanids in 1042, it was initially part of Eastern Kara Khanids, and then later passed to the western one.