sentences:  The Khalji dynasty, founded by him, ruled over Malwa till 1531.Mahmud Khalji I was succeeded by his eldest son Ghiyas-ud-Din.The last days of Ghiyas-ud-Din were embittered by a struggle for throne between his two sons, with Nasir-ud-Din emerging victorious over Ala-ud-Din and ascending the throne on 22 October 1500, The last ruler Mahmud Shah II surrendered to Bahadur Shah, the sultan of Gujarat after the fort of Mandu fell to Bahadur on 25 May 1531.