<Tr> <Th> House </Th> <Td> Lodi dynasty </Td> </Tr> <Tr> <Th> Father </Th> <Td> Sikandar Lodi </Td> </Tr> <P> Ibrahim Lodi became the Sultan of Delhi in 1517 after the death of his father Sikandar Lodi . 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 . </P> <P> 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 . Ibrahim Lodi also displeased the nobility when he replaced old and senior commanders with younger ones who were loyal to him . His Afghan nobility eventually invited Babur to invade India . </P>

Who was the sultan of delhi whem timur invaded delhi