Ibrahim Lodi became the
Sultan of
Delhi in 1517 after the death of his father
Sikandar. He was the last ruler of the
Lodi dynasty, reigning for nine years between 1517 until being defeated and killed at the
battle of Panipat by
Babur's invading army in 1526, giving way to the emergence of the
Mughal Empire in India. Ibrahim was an ethnic
Pashtun. He attained the throne upon the death of his father, Sikandar, but was not blessed with the same ruling capability. He faced a number of rebellions. The
Mewar ruler
Rana Sangram Singh extended his empire right up to western
Uttar Pradesh and threatened to attack
Agra. There was rebellion in the East also. Ibrahim Lodi also displeased the nobility when he replaced old and senior commanders by younger ones who were loyal to him. His Afghan nobility eventually invited
Babur to invade India and Rana Sanga invited Babur to invade India, so that Ranga Sanga can rule Delhi. In 1526, the Mughal forces of Babur, the king of Kabulistan (Kabul, Afghanistan), defeated Ibrahim's much larger army in the
Battle of Panipat. Ibrahim was killed during the battle at
Panipat and his tomb now lies there. It is estimated that Babur's forces numbered around 25,000–30,000 men and had between 20 and 24 pieces of field artillery. Ibrahim Lodi had around 30,000–40,000 men along with at least 100 elephants. After the end of Lodi dynasty, the era of Mughal rule commenced. ==Restoration and relocation==