Alam Khan, betrayed Ibrahim by supporting the Mughal invader Babur. Rajput invasions and internal rebellions Rana Sanga, the Rajput leader of Mewar (), extended his kingdom, defeated the Lodi king of Delhi and was acknowledged by all the Rajput clans as the leading prince of Rajputana. Daulat Khan, the governor of Punjab region asked Babur to invade the Lodi kingdom, with the thought of taking revenge from Ibrahim Lodi. Rana Sanga also offered his support to Babur to defeat Ibrahim Lodi. Battle of Panipat, 1526 After being assured of the cooperation of Alam Khan and Daulat Khan, Governor of the Punjab, Babur gathered his army. Upon entering the Punjab plains, Babur's chief allies, namely Langar Khan Niazi advised Babur to engage the powerful Janjua Rajputs to join his conquest. The tribe's rebellious stance to the throne of Delhi was well known. Upon meeting their chiefs, Malik Hast (Asad) and Raja Sanghar Khan, Babur made mention of the Janjua's popularity as traditional rulers of their kingdom and their ancestral support for his patriarch Emir Timur during his conquest of Hind. Babur aided them in defeating their enemies, the Gakhars in 1521, thus cementing their alliance. Babur employed them as Generals in his campaign for Delhi, the conquest of Rana Sanga and the conquest of India. The new usage of guns allowed small armies to make large gains on enemy territory. Small parties of skirmishers who had been dispatched simply to test enemy positions and tactics, were making inroads into India. Babur, however, had survived two revolts, one in Kandahar and another in Kabul, and was careful to pacify the local population after victories, following local traditions and aiding widows and orphans. Despite both being Sunni Muslims, Babur wanted Ibrahim's power and territory. Babur and his army of 24,000 men marched to the battlefield at Panipat armed with muskets and artillery. Ibrahim prepared for battle by gathering 100,000 man (well-armed but with no guns) and 1,000 elephants. Ibrahim was at a disadvantage because of his outmoded infantry and internecine rivalries. Even though he had more men, he had never fought in a war against gunpowder weapons and he did not know what to do strategically. Babur pressed his advantage from the start and Ibrahim perished on the battlefield in April 1526, along with 20,000 of his men. Accession of Babur and the Mughals After Ibrahim's death, Babur named himself emperor over Ibrahim's