Etymology
Today it means: a port city that was opened to foreign trade, usually consequent to the ratification of an unequal treaty Full definition →
From treaty + port.
Etymology from Wiktionary, CC BY-SA 4.0.