In 1504, Babur succeeded his late uncle
Ulugh Beg II by force of arms, taking control of the latter's kingdom based around
Kabul and
Ghazni. Opposed by
Muhammad Shaybani to the northwest, Babur sought to expand his kingdom to the southeast, into
Punjab, the land of the five rivers. By 1519, he had reached the
Chenab River. At that time, most of
North India was part of the
Delhi Sultanate, under the rule of
Ibrahim Lodi of the
Lodi dynasty. However, Ibrahim was locked in a power struggle with his relatives and ministers.
Daulat Khan Lodi, Governor of
Punjab, offered to defect to Babur. Babur started for
Lahore, in 1524 but found that Daulat had been driven out by forces sent by Ibrahim. The Lodi army marched out to engage Babur and was routed. Babur also took control of
Jhelum,
Sialkot,
Kalanaur and
Dipalpur before returning to Kabul. He placed Dipalpur under control of Alam Khan, a rebel uncle of Ibrahim. At the end of 1525, Babur was to return to northern India, crossing the
Indus in December. After securing his conquest of
Punjab, Babur advanced towards Delhi. It was at
Panipat he was to meet and engage a much larger army assembled by Ibrahim. ==Battle==