On August 23, 1939, the Soviet Union and Germany signed a nonaggression treaty in Moscow, paving the way for the Nazi and Soviet invasions of Poland the following month and the beginning of World War II.