Ghazni was in its glory before Alauddin Hussain of Ghor ruined and destroyed it. Ghazni was sacked and destroyed by Alauddin Husain Suri of Ghor (nicknamed Jahansoz — ‘the world burner’) in 1152 AD, from which it never recovered. Ghurid army put to sword 60,000 inhabitants of Ghazni , and they destroyed all the tombs and mausoleums of Ghaznavid royal family other than of Mahmud, Masud and Ibrahim. Great buildings of Ghazni were destroyed and the royal library was partially burned while the library of Ibn-i-Sina was burned down fully. It is certain that Ghazni never recovered the splendour that perished then. [See Tabaqat-i-Nasiri for details]. Ghazni, which had not recovered from Ghurid devastation, was again destroyed by Mongols, the ancestors of Babur, in 13th century. Uktai Khan, son of Chingiz Khan, sacked and destroyed Ghazni and the country round and massacred its inhabitants.