The treaty ports was the name given to the port cities in China, Japan, and Korea that were opened to foreign trade by the Unequal Treaties.
The first treaty ports in China were British and were established 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, Ningpo, Fuchow, and Amoy. French and American concessions followed soon afterwards.
The second group of British 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 foreign sections, newly built 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.