Estonia became independent from Russia in 1920 after a brief War of Independence at the end of World War I. During World War II (1939–1945), Estonia was occupied by the Soviet Union and Germany. It then became the Estonian Soviet Socialist Republic and lost its independence.