The town was thus taken by assault, and the carnage endured for three days. The governor of the town, appointed by Dahir, fled and the priests of the temple were massacred. Muhammad marked a place for the Musalmans to dwell in, built a mosque, and left four thousand Musalmans to garrison the place. Ambissa son of Ishak Az Zabbi, the governor of Sindh, in the Khilafat of Mutasim billah knocked down the upper part of the minaret of the temple and converted it into a prison. At the same time he began to repair the ruined town with the stones of the minaret.