 Over the following centuries, the city was successively controlled by the Samanids, Ghaznavids, Ghurids, Khwarazmshahs, Qarlughids, and Khaljis.In the 13th century, the invading Mongols caused major destruction in the region.Report of a massacre in the close by Bamiyan is recorded around this period, where the entire population of the valley was annihilated by the Mongol troops as a revenge for the death of Genghis Khan's grandson.