<P> A later city - state, though lacking sovereignty, was West Berlin (1948--1990), being a state legally not belonging to any other state, but ruled by the Western Allies . They allowed--notwithstanding their overlordship as occupant powers--its internal organisation as one state simultaneously being a city, officially called Berlin (West). Though West Berlin maintained close ties to the West German Federal Republic of Germany, it was legally never part of it . </P> <P> The Free City of Danzig was a semi-autonomous city - state that existed between 1920 and 1939, consisting of the Baltic Sea port of Danzig (now Gdańsk, Poland) and nearly 200 towns in the surrounding areas . It was created on 15 November 1920 under the terms of Article 100 (Section XI of Part III) of the 1919 Treaty of Versailles after the end of World War I . </P> <P> After a prolonged period where the city of Fiume enjoyed considerable autonomy under Habsburg rule (see Corpus separatum (Fiume), The Free State of Fiume was proclaimed as a fully independent free state which existed between 1920 and 1924 . Its territory of 28 km (11 sq mi) comprised the city of Fiume (now in Croatia and, since the end of World War II, known as Rijeka) and rural areas to its north, with a corridor to its west connecting it to Italy . </P> <P> The Shanghai International Settlement (1845--1943) was an international zone with its own legal system, postal service, and currency . </P>

After world war 2 population in rural areas apex