The Abbasid Caliphate's authority over the region was weak, and power passed in the tenth century to the Buyid dynasty, which maintained control even when the region and city fell to Mahmud of Ghazna in the late tenth century.
Že v osmem stoletju je bilo mesto znano po svoji proizvodnji kašmirske volne, šalov in drugih tekstilij.