Agra‘s greatest time came when Shahjahan ascended to the throne of Mughal Empire. He marked the greatest point of Mughal architecture. He built the Taj Mahal in memory of his favourite wife Mumtaz Mahal. In his later years, Shahjahan shifted his capital to the new city of Shahjahanabad(Delhi) and ruled from there. Shahjahan was removed in 1658 by his son, Aurangzeb who kept him as prisoner in the Agra Fort. Aurangzeb shifted the capital back to Agra before his death. After the death of Aurangzeb, Mughal Empire could not reach its peak and many regional kingdoms emerged. The post-Mughal era of Agra saw the rule of the Jats, Marathas and finally the British taking over the city. After British Raj ended, Agra became part of independent India.