The Agra Fort is a UNESCO World Heritage site located in Agra, Uttar Pradesh, India. It is about 2.5 km northwest of its more famous sister monument, the Taj Mahal. The fort can be more accurately described as a walled city.HistoryThe present-day structure was built by the Mughals, though a fort had stood there since at least the 11th century. Agra Fort was originally a brick fort known as Badalgarh, held by Raja Badal Singh Hindu Sikarwar Rajput king (c. 1475). It was mentioned for the first time in 1080 AD when a Ghaznavide force captured it. Sikandar Lodi (1488–1517) was the first Sultan of Delhi who shifted to Agra and lived in the fort. He governed the country from here and Agra assumed the importance of the second capital. He died in the fort at 1517 and his son, Ibrahim Lodi, held it for nine years until he was defeated and killed at Panipat in 1526. Several palaces, wells and a mosque were built by him in the fort during his period.After the First Battle of Panipat in 1526, the victorious Babur stayed in the fort, in the palace of Ibrahim Lodi. He later built a baoli (step well) in it. The emperor Humayun was crowned in the fort in 1530. Humayun was defeated at Bilgram in 1540 by Sher Shah. The fort remained with Suris till 1555, when Humanyun recaptured it. The Hindu king Hem Chandra Vikramaditya, also called 'Hemu', defeated Humanyun's army, led by Iskandar Khan Uzbek, and won Agra. Hemu then went on to capture Delhi from the Mughals. The Mughals under Akbar defeated King Hemu finally at the Second Battle of Panipat in 1556.