Rubuta ci gaba don wannan sakin layi - Tsohon Birnin Shanghai da ke hannun Sinawa ya faɗi ga 'yan tawaye daga Ƙungiyar Ƙananan Swords a 1853, amma gwamnatin Qing ta dawo da ita a watan Fabrairun 1855. A shekara ta 1854, an kirkiro Majalisar Birnin Shanghai don gudanar da wuraren zama na kasashen waje. Tsakanin 1860 da 1862, 'yan tawayen Taiping
sau biyu ya kai hari kan Shanghai kuma ya lalata gabashin birnin da kudancin birnin, amma ya kasa daukar birnin. A cikin 1863, mazaunin Biritaniya da ke kudu da Suzhou Creek (yanki Huangpu na arewa) da mazaunin Amurka da ke arewa (yanki Hongkou na kudu) sun haɗu don samar da Shanghai International Settlement. Faransawa sun fice daga Majalisar Birnin Shanghai kuma sun ci gaba da ba da izinin kansu zuwa kudu da kudu maso yamma.