Treaty of Nanking
In the Song Dynasty, it became one of the three major port cities for foreign trade, together with Guangzhou and Quanzhou. It was designated as one of the "Five Treaty Ports" along with Guangzhou, Xiamen, Fuzhou and Shanghai after the 1842 Treaty of Nanking that ended the First Opium War.