The city is mentioned in the epic Mahābhārata, where it was called Agrevaṇa ("the border of the forest").[3] Legend ascribes the founding of the city to Raja Badal Singh, a Sikarwar Rajput king (c. 1475), whose fort, Badalgarh, stood on or near the site of the present fort. However, the 11th century Persian poet Mas'ūd Sa'd Salmān writes of a desperate assault on the fortress of Agra, then held by the Shāhī King Jayapala, by Sultan Mahmud of Ghazni.[4] Sultan Sikandar Lodī was the first to move his capital fromDelhi to Agra in 1506. He died in 1517 and his son, Ibrāhīm Lodī, remained in power there for nine more years, finally being defeated at the Battle of Panipat in 1526.[5] Between 1540 and 1556, Afghans, beginning with Sher Shah Suri ruled the area. It achieved fame as the capital of the Mughal Empire from 1556 to 1658.…