Dilawar Khan, previously Malwa's governor under the rule of the Delhi sultanate, declared himself sultan of Malwa in 1401 after the Mughal conqueror Timur attacked Delhi, causing the break-up of the sultanate into smaller states. Khan started the "Malwa Sultanate" and established a capital at Mandu, high in the Vindhya Range overlooking the Narmada River valley. His son and successor, Hoshang Shah (1405–35), developed Mandu as an important city. Hoshang Shah's son, Ghazni Khan, ruled for only a year and was succeeded by Mahmud Khalji (1436–69), the first of the Khalji sultans of Malwa, who expanded the state to include parts of Gujarat, Rajasthan, and the Deccan. The Muslim sultans invited the Rajputs to settle in the country. In the early 16th century, the sultan sought the aid of the sultans of Gujarat to counter the growing power of the Rajputs, while the Rajputs sought the support of the Sesodia Rajput kings of Mewar.During that time Much of the Malwa was conquered by Rana Sanga of Mewar who appointed one of his close allies Medini Rai as ruler of Malwa under his lordship.Chanderi was capital of his kingdom..After the defeat of Rajput confederation in Battle of Khanwa near Agra against Babur which was fought for Supremacy of Northern India between Rajputs and Mughals.Babur then siege Chanderi offering Shamsabad to Medini rai instead of Chanderi as it was capital of his kingdom and was of great importance but Rai refused Babur offer and choose to die.He was defeated by Babur in January 1528 at Battle of Chanderi and Babur conquer the fort.