The Agra Fort (Red Fort of Agra) was built by the Mughal emperor Akbar between 1565-1573. It served as the main residence of the Mughal emperors until Shah Jahan later shifted the capital to Delhi. Humayun, Jehangir, and Shah Jahan all used and modified the fort but Akbar was its original builder.