On 24 February 1918, the Independence Manifesto was proclaimed in Reval (Tallinn), followed by Imperial German occupation and a war of independence with Soviet Russia, after which Tallinn became the capital of independent Estonia. During World War II, Estonia was first occupied by the Red Army and annexed into the USSR in 1940, then occupied by Nazi Germany from 1941 to 1944. When German forces invaded there were about 1,000 remaining Jews in the city of Tallinn, nearly all of whom would die in the Holocaust at the hands of the Nazis before the war's end. After the German retreat in 1944, the city was occupied again by the Soviets. After the annexation of Estonia into the USSR, Tallinn became formally "the capital city" of the Estonian SSR within the Soviet Union.