was rash and impolitic in his decisions and actions. His attempt at royal absolutism was premature and his policy of sheer repression unaccompanied by measures to strengthen the administration and increase the military resources was sure to prove a failure. Ibrahim faced numerous rebellions and kept out the opposition for almost a decade. He was engaged in warfare with the Afghans and the Timurid Empire for most of his reign and died trying to keep the Lodi dynasty from annihilation. Ibrahim was defeated in 1526 at the Battle of Panipat. This marked the end of the Lodi dynasty and the rise of the Mughal Empire in India led by Babur (). Fall of the empire By the time Ibrahim ascended the throne, the political structure in the Lodi dynasty had dissolved due to abandoned trade routes and the depleted treasury. The Deccan was a coastal trade route, but in the late fifteenth century the supply lines had collapsed. The decline and eventual failure of this specific trade route resulted in cutting off supplies from the coast to the interior, where the Lodi empire resided. The Lodi dynasty was not able to protect itself if warfare were to break out on the trade route roads; therefore, they didn't use those trade routes, thus their trade declined and so did their treasury leaving them vulnerable to internal political problems. In order to take revenge of the insults done by Ibrahim, the governor of Lahore, Daulat Khan Lodi asked the Timurid ruler of Kabul, Babur to invade his kingdom. Ibrahim Lodi was thereafter killed in a battle with Babur, at the Battle of Panipat (1526). With the death of Ibrahim Lodi, the Lodi dynasty also came to an end, leading to the establishment of the Mughal Empire in the subcontinent. Afghan factionalism Another problem Ibrahim faced when he ascended the throne in 1517 were the Pashtun nobles, some of whom supported Ibrahim's older brother, Jalaluddin, in taking up arms against his brother in the area in the east at Jaunpur. Ibrahim gathered military support and defeated his brother by the end of the year. After this incident, he arrested those Pashtun nobles who opposed him and appointed his own men as the new administrators. Other Pashtun nobles supported the governor of Bihar, Dariya Khan, against Ibrahim. Another factor that caused uprisings against Ibrahim was his lack of an apparent successor. His own uncle,