Originally Babar was the ruler of Farghana.In the first Battle of Panipat fought on 21April, 1526 between Babur and Lodhi Emperor Ibrahim Lodhi in which victory of Babur over the Lodhi laid the foundation of Mughal Empire in India.In 1527 Babur defeated Rana Sanga in the Battle of Khanwa.Afghans under Muhmmad Lodhi were defeated by Babur at the Battle of Ghagara in 1529.Babur died at Agra in 1530 but according to his will his body was taken to Kabul and buried there.Babur was a prolific writer as well as poet has written his autobiography Tuzuk-i- Baburi in Chaghatay Turki.