 Sultan Mahmud Khilji of Malwa captured the city in 1438 after a siege of several months.In 1520 Rana Sangha of Mewar captured the city, and gave it to Medini Rai, a rebellious minister of Sultan Mahmud II of Malwa.The Mughal Emperor Babur captured the city from Medini Rai, and in 1540 it was captured by Sher Shah Suri, and added to the governorship of Shujaat Khan.