Treaty of Nanking
The International Settlement of Shanghai was established by the Treaty of Nanking. Police, jurisdiction and passport control were implemented by the foreign autonomous board. Under the Unequal Treaties between China and European countries, visas were only required to book tickets departing from Europe.