The Battle of Khanwa was fought at Khanwa on March 16, 1527. It was fought between the invading Timurid forces of Babur and the Rajput confederacy led by Rana Sanga for suprermacy of Northern India. The battle was a major event in Medieval Indian history although Timurids won at Panipat but at the time, the sultanate at Delhi was a spent force that was long crumbling. To the contrary Mewar kingdom, under the able rule of Rana Sanga, had turned into one of the strongest powers of northern India. Therefore the battle was among the most decisive battles in the Mughal conquest of northern India. It was among the earliest battles in Northern India where gunpowder was used to a great extent. The battle resulted in heavy casualties for both Timurids and Rajputs. Background Until 1524, Babur's aim was to expand his rule to Punjab, primarily to fulfil the legacy of his ancestor Timur, since it used to be part of his empire. Large 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. Babur had already raided Punjab in 1504 and 1518. In 1519 he tried to invade Punjab but had to return to Kabul due to complications there. In 1520–21 Babur again ventured to conquer Punjab, he easily captured Bhira and Sialkot which were known as the "twin gateways to Hindustan". Babur was able to annex towns and cities till Lahore but was again forced to stop due to rebellions in Qandhar. In 1523 he received invitations from Daulat Khan Lodi, Governor of Punjab and Ala-ud-Din, Ibrahim's uncle, to invade the Delhi Sultanate. Daulat Khan later betrayed Babur and with a force of 40,000 he captured Sialkot from the Mughal garrison and marched towards Lahore. Daulat Khan was soundly defeated at Lahore and through this victory Babur became the unopposed lord of Punjab., Babur continued his conquest and annihilated the Lodi sultanate's army in the First Battle of Panipat, where he killed the Sultan and founded the Mughal Empire. According to Baburnama, Rana Sanga had also offered to help Babur against Ibrahim, however while Babur did attack Lodi and take over Delhi and Agra, Sanga made no move, apparently having changed his mind. Babur had resented this backsliding; in his autobiography, Babur accuses Rana Sanga of breaching their agreement. However Rajput sources claim