After losing Samarkand for the second time, Babur gave attention to conquer India as he reached the banks of the Chenab in 1519. Until 1524, his aim was to only expand his rule to Punjab, mainly to fulfil his ancestor Timur's legacy, since it used to be part of his empire. At that time, parts of north India were under the rule of Ibrahim Lodi of the Lodi dynasty, but the empire was crumbling and there were many defectors. He received invitations from Daulat Khan Lodi, Governor of Punjab and Ala-ud-Din, uncle of Ibrahim. He sent an ambassador to Ibrahim, asking him to get punished by him and he is rightful to the throne of the country, however, the ambassador was detained at Lahore and released months later. Babur started for Lahore, Punjab, in 1524 but found that Daulat Khan Lodi had been driven out by forces sent by Ibrahim Lodi. When Babur arrived at Lahore, the Lodi army marched out and was routed. In response, Babur burned and punished the people of Lahore for two days, then marched to Dipalpur, placing Alam Khan, another rebel uncle of Lodi's, as governor. Alam Khan was quickly overthrown and fled to Kabul. In response, Babur supplied Alam Khan with troops who later joined up with Daulat Khan Lodi and together with about 30,000 troops, they besieged Ibrahim Lodi at Delhi. He defeated them and drove Alam's army off, and Babur realised Lodi would not allow him to occupy the Punjab.
Battle
Hearing of the size of Ibrahim's army, Babur secured his right flank against the city ofPanipat, while digging a trench covered with tree branches to secure his left flanks. In the centre, he placed 700 carts tied together with ropes. Between every two carts, there were breastworks for his matchlock men. Babur also ensured there When Ibrahim's army arrived, he found the approach to Babur's army too narrow to attack. While Ibrahim redeployed his forces to allow for the narrower front, Babur quickly took advantage of the situation to flank the Lodi army. Many of Ibrahim's troops were unable to get into action, and fled when the battle turned against them.
Advantage of cannons in the battle
Babur's guns proved decisive in battle, firstly because Ibrahim lacked any field artillery, but also because the sound of the cannon frightened Ibrahim's elephants, causing them to trample his own men.
Tactics
Tactics used by Babur were the tulguhma and the araba. Tulguhma meant dividing the whole army into various units, viz. the Left, the Right, and the Centre. The Left and Right divisions were further subdivided into Forward and Rear divisions. Through this, a small army could be used to surround the enemy from all sides. The Centre Forward division was then provided with carts which were placed in rows facing the enemy and tied to each other with animal hide ropes. Behind them were placed cannons protected and supported by mantlets which could be used to easily manoeuvre the cannons. These two tactics made Babur's artillery lethal. The cannons could be fired without any fear of being hit, as they were shielded by the bullock carts held in place by hide ropes. The heavy cannons could also be easily traversed onto new targets, as they could be manoeuvred by the mantlets which were on wheels.
Aftermath
Ibrahim Lodi died on the field of battle along with 20,000 of his troops. The battle of Panipat was militarily a decisive victory for Timurids. Politically it gained Babur new lands, and initiated a new phase of his establishment of the long-lasting Mughal Empire in the heart of the Indian Subcontinent.