The city was founded in 1146 by a member of the Ghurid dynasty, Qutb al-Din Muhammad. The Ghurid sultanate was brought to prominence in 1150 by
Ala Al-Din Husayn, al-Din Muhammad's brother, who overthrew the previous
Ghaznavid dynasty and burned their capital city,
Ghazna, killing up to 60,000 inhabitants. A historian of the dynasty,
Minhaj al-Siraj Juzjani, wrote that the remaining citizens of Ghazna, imprisoned, were used to transport building supplies to Firozkoh. Juzjani also claims that the blood of the prisoners was combined with mud to form additional building materials. Throughout the reign of subsequent Ghurid sultans, Firozkoh continued to prosper as the dynasty expanded. Firozkoh was used as a summer capital, as the leadership of the Ghurid sultanate were semi-nomadic. The city competed with
Herat as a center of Ghurid art, literature, and theology. In 1199, the Ghurid sultan,
Ghiyath al-Din, ordered the empire to abandon the
Karramiyya sect of Islam in favor of
Shafi'i law. This decision was unpopular with the city's residents and led to riots. ==Sources describing the city==