The Walled City of Lahore once had 13 gates. All survived until the 1857 Uprising, when in an effort to de-fortify the city, all but one of the gates were destroyed by the British. Three were rebuilt as simpler structures, while the Delhi Gate, Shah Alami Gate, and Lohari Gate were built in a more elaborate style. The Shah Alami Gate was destroyed during riots following the Partition of British India.