In Gwalior, Manasimha was succeeded by his son Vikramaditya. Meanwhile, Sikander Lodi's successor Ibrahim Lodi had to fight with rebels, one of whom - Jalal Khan - took asylum in Gwalior. Ibrahim Khan sent a strong army to besiege Gwalior. Led by Azam Humayun Sarwani, this army comprised 30,000 cavalry and 300 elephants. During the siege, Jalal Khan left for Malwa so as not to cause any further trouble to his host. After offering some initial resistance, Vikramaditya realized that he was facing a certain defeat, and started peace negotiations. As part of a peace treaty, Ibrahim Lodi forced him to surrender Gwalior, and assigned the fief of Shamsabad to him. Vikramaditya remained loyal to Ibrahim Lodi for the rest of his life, and died fighting beside him at the First Battle of Panipat against Babur.