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
History of Latvia Latvian-Polish border was demarcated between 1933 and 1938. The earliest foreign policy goals were securing peace with Soviet Russia and Germany, gaining international recognition and joining the League of Nations. All this was achieved by the efforts of Zigfrīds Anna Meierovics. The hope of union of Baltic countries - Poland, Lithuania, Latvia, Estonia, Finland - faded after 1922. After that Latvia was the most energetic proponent of Baltic unity and Baltic Entente. On November 1, 1923 Latvia and Estonia signed a military alliance, followed by trade agreements. Latvia tried to maintain good relations with regional hegemons Russia and Germany and