 During the war, with a period of German occupation from 1941–45, Latvia lost its "de facto" independence as it was occupied by the USSR and became the Latvian SSR.Soviet rule ended in 1991 during the third "Latvian National Awakening" and the restoration of independence.The majority of inhabitants are Latvians.