Question: when did latvia become part of the soviet union
Answer: Following the Welles Declaration of July 23 , 1940 , the annexation of Latvia into the Soviet Union ( USSR ) on 5 August 1940 was not recognized as legitimate by the United States , the European Community , and recognition of it as the nominal fifteenth constituent republic of the USSR was withheld for five decades .