the capital of mughal empire was shifted from agra to delhi by
History of Delhi The third and greatest Mughal emperor, Akbar, moved the capital to Agra, resulting in a decline in the fortunes of Delhi. In the mid-17th century, the Mughal Emperor Shah Jahan (1628–1658) built the city that sometimes bears his name Shahjahanabad, the seventh city of Delhi that is more commonly known as the old city or old Delhi. This city contains a number of significant architectural features, including the Red Fort (Lal Qila) and the Jama Masjid. The old city served as the capital of the later Mughal Empire from 1638 onwards, when Shah Jahan transferred the capital back from Agra. Aurangzeb (1658–1707) crowned himself as emperor in Delhi in 1658 at the Shalimar garden ('Aizzabad-Bagh) with a second coronation in 1659. After 1680, the Mughal Empire's influence declined rapidly as the Hindu Maratha Empire rose to prominence.[24]
Agra It is generally accepted that Agra was both an ancient city from the times of the Mahabharata (see above) and yet nevertheless Sultan Sikandar Lodī, the Muslim ruler of the Delhi Sultanate, founded Agra in the year 1504. After the Sultan's death, the city passed on to his son, Sultan Ibrāhīm Lodī. He ruled his Sultanate from Agra until he fell fighting to Mughal Badshah Bābar in the First battle of Panipat fought in 1526.