Treaty port is the name given to Chinese seaports that were open to trade with certain foreign countries beginning in the mid-1800's. The cities were called treaty ports because the foreign trade there was carried on under treaty agreements. Such agreements were a way of gaining trading rights in China.