It finds mention in the epic Mahabharata when it was called Agrabana, or Paradise. Ptolemy, the famous 2nd century geographer, marked it on his map of the world as Agra. Tradition and legend ascribe the present city of Raja Badal Singh (around 1475) whose Fort, Badalgarh, Stood on or near the site of the present Fort. However, the 12th century Persian poet Salman writes of a desperate assault on the fortress of Agra, then held by one King Jaipal, by Sultan Mahmud of Ghazni.It was ruled by Sultan Sikandar Lodi in the year 1506. It achieved fame as the capital of the Mughal emperors from 1526 to 1658 and remains a major tourist destination because of its many splendid Mughal-era buildings, most notably the Taj Mahal, Agra Fort and Fatehpur Sikri, all three of which are UNESCO World Heritage Sites.
Be Noted that a Stone Plate located at the Gate of Fort describes it to be built before 1000 and later renovated by Akbar. The red sandstone fort was renovated and converted into a palace during Shah Jahan's time, and reworked extensively with marble and pietra dura inlay. Notable buildings in the fort include the Pearl Mosque, the Diwan-e-Am and Diwan-e-Khas (halls of public and private audience), Jehangir's Palace, Khaas Mahal, Sheesh Mahal (mirrored palace), and Musamman Burj.
The great Mughal Emperor Akbar commissioned the construction of the Agra Fort in 1565 CE., although additions were made till the time of his grandson Shah Jahan. The forbidding exteriors of this fort hide an inner paradise. The fort is crescent shaped, flattened on the east with a long, nearly straight wall facing the river. It has a total perimeter of 2.4 k.m., and is ringed by double castellated ramparts of red sandstone punctuated at regular intervals by bastions. A 9 mt. wide and 10 mt. deep moat surround the outer wall.
Shivaji visited Agra fort as per the "Purandar Treaty" entered into with Mirza Raja Jaisingh to met Aurangzeb in the Diwan-i-khas. In the audience he was deliberately placed behind men of lower rank. Insulted Shivaji stormed out of the imperial audience and was confined to Jai Sing's quarters on 12th May 1666. Fearing the dungeons and execution, in a famously sweet legend, he escaped on the 17th of August 1666. A heroic equestrian statue of Shivaji has been erected outside the fort.
The fort standing as a typical example of the Mughal architecture.It shows how the North Indian style of fort construction differentiated from that of the South.In South majority of the beautiful forts were built on the sea beds like the one at Bekal in Kerala.