"The Latvian Soviet Socialist Republic, also known as Soviet Latvia, was one of the constituent republics of the Soviet Union from 5 August 1940. It was established on 21 July 1940, during World War II in the territory of the previously independent Republic of Latvia after it had been occupied on June 17, 1940 by the Red Army, in conformity with the terms of the 23 August 1939 Molotov–Ribbentrop Pact. Following the Welles Declaration of 23 July 1940, the annexation of the Baltic states into the Soviet Union (USSR) on 5 August 1940, was not recognized as legitimate by the United States and Western European governments and recognition of them as the nominal thirteenth, fourteenth, and fifteenth constituent republic of the USSR was withheld for five decades. Its territory was subsequently conquered by Nazi Germany in 1941, before being retaken by the Soviets in 1944–1945. Nevertheless, Latvia continued to exist as a de jure independent country with a number of countries recognizing Latvian diplomats and consuls who still functioned in the name of their former governments. Soviet rule came to an end during the dissolution of the Soviet Union. The first freely elected parliament of the Latvian SSR passed a declaration "On the Renewal of the Independence of the Republic of Latvia" on 4 May 1990, restoring the official name of the State of Latvia as the Republic of Latvia. The full independence of the Republic of Latvia was restored on 21 August 1991 during the 1991 Soviet coup d'état attempt and fully recognized by the Soviet Union on 6 September 1991."
Them Soviets loved giving this thing out!