Yazid ibn al-Muhallab
Circa 689 CE, the Hephthalite ruler of Badghis and the Arab rebel Musa ibn Abd Allah ibn Khazim, son of the Zubayrid governor of Khurasan Abd Allah ibn Khazim al-Sulami, allied against the forces of the Ummayad Caliphate. The Hepthalites and their allies captured Termez in 689, repelled the Arabs, and occupied the whole region of Khorasan for a brief period, with Termez as they capital, described by the Arabs as "the headquarters of the Hephthalites" ("dār mamlakat al-Hayāṭela"). The Arabs of the Ummayad Caliphate under Yazid ibn al-Muhallab re-captured Termez in 704. Nezak Tarkan, the ruler of the Hephthalites of Badghis, led a new revolt in 709 with the support of other principalities as well as his nominal ruler, the Yabghu of Tokharistan. In 710, Qutaiba ibn Muslim was able to re-establish Muslim control over Tokharistan and captured Nizak Tarkan who was executed on al-Hajjaj's orders, despite promises of pardon, while the Yabghu was exiled to Damascus and kept there as a hostage.