"" is the national anthem of Latvia. Created in 1873 as a patriotic song, it did not gain official status until 1920.
The music and lyrics were written in 1873 by KÃÂrlis Baumanis, a teacher who was part of the Young Latvian nationalist movement. It is thought that Baumanis was inspired by a popular song "Dievs, svÃÂtë Kurzemi/Vidzemi" (, which was modified depending on the region it was used in) that was sung to the tune of "God Save the King". Baumanis's lyrics were different from the modern ones: he used the term "Baltics" synonymously and interchangeably with "Latvia" and "Latvians", so "Latvia" was actually mentioned only at the beginning of the first verse. Later, the term "Latvia" was removed and replaced with "Baltics" to avoid a ban on the song. This has led to the misapprehension that the term "Latvia" was not part of the song until it was chosen as national anthem on June 7, 1920, and the word "Baltics" was replaced with "Latvia".
During the occupation of Latvia by the Soviet Union, the singing of "Dievs, svÃÂtë Latviju" was banned. The subsequently-established Latvian Soviet Socialist Republic had its own anthem. "Dievs, svÃÂtë Latviju" was restored as the state anthem of Latvia on February 15, 1990 â shortly before independence on May 4.
The anthem's tune was modernized with a new F-major version that has been used since 2014; formerly, a G-major version was used on LTV's sign-on and sign-offs daily from 2011 to 2013. However, the G-major version was still played on any occasion (especially and notably, during times of mourning). The current version played on LTV for their sign-on and sign-offs daily is in the key of B-flat major.