The treaty ports was the name given to the port cities in China, Japan, Taiwan, and Korea that were opened to foreign trade by the unequal treaties with the Western powers.
The British established the first treaty ports in China at the conclusion of the First Opium War by the Treaty of Nanking in 1842. As well as ceding the island of Hong Kong to the United Kingdom in perpetuity, the treaty also established five treaty ports at Shanghai, Canton (Guangzhou), Ningpo (Ningbo), Fuchow (Fuzhou), and Amoy (Xiamen). The following year the Chinese and British signed the Treaty of the Bogue, which added provisions for extraterritoriality and most favoured nation status for the latter country. Subsequent negotiations with the Americans (1843 Treaty of Wanghia) and the French (1844 Treaty of Whampoa) led to further concessions for these nations on the same terms as the British.
The second group of treaty ports was set up following the end of the Arrow War in 1860 and eventually more than 80 treaty ports were established in China alone, involving many foreign powers.
Foreigners, who were centered in sections newly built for them on the edges of existing port cities, enjoyed legal extraterritoriality as stipulated in Unequal Treaties. Foreign clubs, racecourses, and churches were established in major treaty ports. Some of these port areas were directly leased by foreign powers such as in the concessions in China, effectively removing them from the control of local governments.