 After having settled an affair in Tokharistan, Qutayba restored Bukhara to the young Tughshada, and the faction of Khunuk including himself were executed.Later, in 712/3, in order to spread Islam in Bukhara, Qutayba built a mosque in the city's citadel, and even encouraged the natives to convert by paying them to attend the prayers.However, Islamization proceeded very slowly, and the rulers of Bukhara would remain Zoroastrian until their downfall.