Treaty ports were coastal cities in China that were opened to foreign trade and residence as a result of various unequal treaties signed in the 19th century. These ports became symbols of Western imperialism, granting foreign powers significant economic and territorial control within China, and laying the groundwork for profound social, political, and economic changes in the country.