 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.