Ghagra Battle was fought between the Afgan king Mahmud Lodi and the Mughal emperor Babur. At that time Babur was trying to consolidate his dominion by encompassing all of North India. Lodi was supported by the Rajput kings of India and he raised serious threats to the Mughal. Mahmud Lodi had good relations with the kings of Bihar and Bengal where he had taken refuge once. In 1529, Babur fought a vigorous war with the Afgan force on the bank of river Ghagra in Bihar. Mahmud Lodi was defeated in the battle, and Babur extended his frontier from the Oxus River in the west to the Ghagra River in the east and from the Himalayas to Gwalior.