On 18 November 1918, the Latvians declared their country an independent republic, but it was then returned to the USSR and only gained final independence in 1991.