1. Nuh II replaced him with one of his own partisans, a Turkish general called Tash.

1. Nuh II replaced him with one of his own partisans, a Turkish general called Tash.
Tash convinced Nuh II to give Fa'iq control of Balkh and to Abu 'Ali control of Herat; Abu'l-Hasan was restored in Khurasan, while Tash kept his governorship of Khurasan.
Nuh II managed to convince several of his vassals to mobilize their forces against Fa'iq, but the latter retained his position.
Nuh II fled, and the Karakhanids entered the capital in the late spring of 992, where they managed to capture Abu Ali Damghani.
Nuh II requested his assistance, but the latter initially refused.
Nuh II then fled to Abu 'Ali; the two settled their past differences and resolved to put an end to Samanid rule.
Nuh II then requested assistance from the Sebuk Tigin of Ghazna.
The Ghaznavid agreed to provide assistance, and Nuh II's forces were further strengthened by the help of Khwarazm and several other of his vassals.
The rebels fled to Gurgan; Nuh II rewarded Sebuk Tigin and his son Mahmud with titles, and gave the governorship of Khurasan to Mahmud as well.
Nuh II pardoned Abu 'Ali, and sent him to Khwarazm.
Nuh II annexed southern Khwarazm and sent Abu 'Ali back to Nuh.