Question: the capital of mughal empire was shifted from agra to delhi by
Answer: 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 .