Mughal Emperor, Shahjahan began constructing Red Fort in Old Delhi in 1638 so that it could function as a center for Mughal government. So halls of public and private audience, domed and arched marble palaces, private apartments and even a mosque, was built inside it. Lal Quila was attacked by the Persian Emperor Nadir Shah in 1739, and by the British soldiers during the war of independence in 1857.