In July 1882 the city was the site of the first battle of the Anglo-Egyptian War, when it was bombarded and occupied by British naval forces. Large sections of the city were damaged in the battle, or destroyed in subsequent fires.