In the beginning of the 20th century WWI devastated the territory of Latvia and other western parts of the Russian Empire. The country was exhausted and tired, so on 11 November 1918, the People's Council of Latvia proclaimed the independence of the new country. The event was part of a general chaotic period of civil and border wars in Eastern Europe.

More Info: en.wikipedia.org