After Nazi Germany and Soviet Union entered into the Molotov–Ribbentrop Pact in 1939, Latvia fell into the USSR sphere of influence in accordance with the Pact secret protocols and was promptly annexed by USSR in 1940.