Latvia states of Northern and Eastern Europe were divided into German and Soviet "spheres of influence". In the north, Latvia, Finland and Estonia were assigned to the Soviet sphere. A week later, on 1 September 1939, Germany and on 17 September, the Soviet Union invaded Poland. After the conclusion of the Molotov-Ribbentrop Pact, most of the Baltic Germans left Latvia by agreement between Ulmanis' government and Nazi Germany under the Heim ins Reich programme. In total 50,000 Baltic Germans left by the deadline of December 1939, with 1,600 remaining to conclude business and 13,000 choosing to remain in Latvia. Most of
Finland–Russia border Finnish reindeer fence. Unlike other Western countries, the government of Finland did not protect illegal border crossers but returned them to the Soviet authorities if captured. Illegal border crossers had to get through Finland to e.g. Sweden in order to defect to the West. In the Moscow Armistice signed on 1944 between Finland, Soviet Union and United Kingdom, a small peninsula towards the Gulf of Finland, Porkkala, was rented to Soviet Union as a military base. This created in effect a southern border crossing to the Soviet exclave, operating all the way to 1956. Border crossings were in and .