After the death of Sikandar Shah, his eldest son Ibrahim was put on the throne on 21st November 1517 with the unanimous consent of the Afghan Nobles and he took up the title of Ibrahim Shah. He was intelligent, courageous and brave. He had some reputation for piety and orthodoxy. Like his father he was interested in music. As a man, he was generous and kind, but as a ruler he had many shortcomings which were heightened by the adverse circumstances in which he was placed. A faction of the nobility advocated a partition of the kingdom and set up his younger brother Jalal Khan on the throne of Jaunpur. But soon Jalal Khan was assassinated by his brother’s men.
He had a certain amount of vanity and he demanded more implicit obedience than was customary among the Afghans. His treatment of the nobility was on the whole tactless and indiscreet. His policy was calculated to provoke opposition and rebellion. He lacked qualities of generalship and seldom took the field himself. Soon disputes between the king and the Afghan nobles, which were simmering throughout the Lodhi period, became acute and Daulat Khan Lodhi, the governor of the Punjab and the king’s uncle, invited Babur, the ruler of Kabul, to invade India. After early incursions confined to the north-west and the Punjab, Babur met Ibrahim on 21st April, 1526 in the first battle of Panipat, and, by defeating him and capturing Dehli and Agra, laid the foundation of Mughal rule. This was also the end of Lodhi dynasty with the death of Ibrahim Lodhi at the battlefield of Panipat.