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
Demographics of Latvia the cross-roads of all the regional superpowers of their day, including Denmark (the Danes held on lands around the Gulf of Riga), Sweden, and Russia, with southern (Courland) Latvia being at one time a vassal to Poland-Lithuania as well as Latgale falling directly under Poland-Lithuania rule. Through all this time, Latvia remained largely under Baltic German hegemony, with Baltic Germans comprising the largest land-owners, a situation which did not change until Latvia's independence. Historically, Latvia has had significant German, Russian, Jewish, Polish and Lithuanian minorities. The majority (roughly two thirds) of Latvians, under Swedish influences, adopted Lutheranism, while the minority