The Port of Shanghai opened to international trade in 1842, at the end of the First Opium War and with the signing of the Treaty of Nanjing. The British settled along the Bund, turning the muddy land into a business center laid out in a uniform grid. The popular waterfront promenade, with its stately buildings, has been preserved to the present day.