Latvia, officially the Republic of Latvia, is a country in the Baltic region of northern Europe. It is one of the three Baltic states, along with Estonia to the north and Lithuania to the south. It borders Russia to the east and Belarus to the southeast and shares a maritime border with Sweden to the west. Latvia covers an area of , with a population of 1.83million. The country has a temperate seasonal climate. Its capital and largest city is Riga. Latvians, who are the titular nation and comprise 65.5% of the country's population, belong to the ethnolinguistic group of the Balts and speak Latvian. Russians are the most prominent minority in the country, at almost a quarter of the population; 37.7% of the population speak Russian as their native tongue.

After centuries of Teutonic, Swedish, Polish-Lithuanian, and Russian rule, the independent Republic of Latvia was established on 18 November 1918 after breaking away from the Russian Empire in the aftermath of World War I. The country became increasingly autocratic after the coup in 1934 established the dictatorship of Kārlis Ulmanis. Latvia's de facto independence was interrupted at the outset of World War II, beginning with forcible incorporation into the Soviet Union, followed by the invasion and occupation by Nazi Germany in 1941 and the re-occupation by the Soviets in 1944, which formed the Latvian SSR for the next 45 years. As a result of extensive immigration during the Soviet occupation, ethnic Russians became the most prominent minority in the country. The peaceful Singing Revolution started in 1987 among the Baltic Soviet republics and ended with the restoration of both de facto and official independence on 21 August 1991. Latvia has since been a democratic unitary parliamentary republic.

Latvia is a developed country with a high-income, advanced economy ranking 39th in the Human Development Index. It is a member of the European Union, Eurozone, NATO, the Council of Europe, the United Nations, the Council of the Baltic Sea States, the International Monetary Fund, the Nordic-Baltic Eight, the Nordic Investment Bank, the Organisation for Economic Co-operation and Development, the Organization for Security and Co-operation in Europe, and the World Trade Organization.

Etymology The name Latvija is derived from the name of the ancient Latgalians, one of four Indo-European Baltic tribes (along with Curonians, Selonians and Semigallians), which formed the ethnic core of modern Latvians together with the Finnic Livonians. Henry of Latvia coined the latinisations of the country's name, "Lettigallia" and "Lethia", both derived from the Latgalians. The terms inspired the variations on the country's name in Romance languages from "Letonia" and in several Germanic languages from "Lettland".

History

Around 3000 BC, the Proto-Baltic ancestors of the Latvian people settled on the eastern coast of the Baltic Sea. The Balts established trade routes to Rome and Byzantium, trading local amber for precious metals.A History of Rome, M Cary and HH Scullard, p455-457, Macmillan Press, By 900 AD, four distinct Baltic tribes inhabited Latvia: Curonians, Latgalians, Selonians, Semigallians (in Latvian: kurši, latgaļi, sēļi and zemgaļi), as well as the Finnic tribe of Livonians (lībieši) speaking a Finnic language.

In the 12th century in the territory of Latvia, there were lands with their rulers: , , Bandava, Piemare, , , Koknese, Jersika, Tālava and .Latvijas vēstures atlants, Jānis Turlajs, page 12, Karšu izdevniecība Jāņa sēta,

Medieval period Although the local people had contact with the outside world for centuries, they became more fully integrated into the European socio-political system in the 12th century. The first missionaries, sent by the pope, sailed up the Daugava River in the late 12th century, seeking converts. The local people, however, did not convert to Christianity as readily as the church had hoped.

At the beginning of the 13th century, Germans ruled large parts of what is currently Latvia. The influx of German crusaders especially increased in the second half of the 13th century following the decline and fall of the Crusader States in the Middle East. Together with southern Estonia, these conquered areas formed the crusader state that became known as Terra Mariana (Medieval Latin for "Land of Mary") or Livonia. In 1282, Riga, and later the cities of Cēsis, Limbaži, Koknese and Valmiera, became part of the Hanseatic League. Riga became an important point of east–west trading and formed close cultural links with western Europe. The first German settlers were knights from northern Germany and citizens of northern German towns who brought their Low German language to the region, which shaped many loanwords in the Latvian language.

Reformation period and Lithuanian, Polish, and Swedish rule

After the Livonian War (1558–1583), Livonia (northern Latvia and southern Estonia) fell under the hegemony of the Polish–Lithuanian Commonwealth. The lands were ceded to the Grand Duchy of Lithuania and formed into the Duchy of Livonia (Ducatus Livoniae Ultradunensis). Gotthard Kettler, the last master of the Order of Livonia, formed the Duchy of Courland and Semigallia. Though the duchy was a vassal state to the Lithuanian Grand Duchy and later of Poland–Lithuania, it retained a considerable degree of autonomy and experienced a golden age in the 16th century. Latgalia, the easternmost region of Latvia, became a part of the Inflanty Voivodeship of the Polish–Lithuanian Commonwealth.

In the 17th and early 18th centuries, the Polish–Lithuanian Commonwealth, Sweden, and Russia struggled for supremacy in the eastern Baltic. After the Polish–Swedish War, northern Livonia (including Vidzeme) came under Swedish rule. Riga became the capital of Swedish Livonia and the largest city in the entire Swedish Empire.Kasekamp, p. 47 Fighting continued sporadically between Sweden and Poland until the Truce of Altmark in 1629. In Latvia, the Swedish period is generally remembered as positive; serfdom was eased, a network of schools was established for the peasantry, and the power of the regional barons was diminished.H. Strods, "'Dobrye Shvedskie Vremena' v Istoriografii Latvii (Konets XVIII V. – 70-E Gg. XX V.). ["'The good Swedish times' in Latvian historiography: from the late 18th century to the 1970s"] Skandinavskiy Sbornik, 1985, Vol. 29, pp. 188–199

Several important cultural changes occurred during this time. Under Swedish and largely German rule, western Latvia adopted Lutheranism as its main religion. The ancient tribes of the Couronians, Semigallians, Selonians, Livs, and northern Latgallians assimilated to form the Latvian people, speaking one Latvian language. An actual Latvian state had not been established, so the borders and definitions of who fell within that group are largely subjective. Meanwhile, largely isolated from the rest of Latvia, southern Latgallians adopted Catholicism under Polish/Jesuit influence. The native dialect remained distinct, although it acquired many Polish and Russian loanwords.

Livonia and Courland in the Russian Empire During the Great Northern War (1700–1721), up to 40 percent of Latvians died from famine and plague. Half the residents of Riga were killed by plague in 1710–1711.. Bank of Latvia. The capitulation of Estonia and Livonia in 1710 and the Treaty of Nystad, ending the Great Northern War in 1721, gave Vidzeme to Russia (it became part of the Riga Governorate). The Latgale region remained part of the Polish–Lithuanian Commonwealth as Inflanty Voivodeship until 1772, when it was incorporated into Russia. The Duchy of Courland and Semigallia, a vassal state of the Polish–Lithuanian Commonwealth, was annexed by Russia in 1795 in the Third Partition of Poland, bringing all of what is now Latvia into the Russian Empire. All three Baltic provinces preserved local laws, German as the local official language and their own parliament, the Landtag.

The emancipation of the serfs took place in Courland in 1817 and in Vidzeme in 1819. In practice, however, the emancipation was actually advantageous to the landowners and nobility, as it dispossessed peasants of their land without compensation, forcing them to return to work at the estates "of their own free will".Misiunas, Romuald J., Stranga, Aivars, Spekke, Arnold, Smogorzewski, Kazimierz Maciej. "history of Latvia". Encyclopedia Britannica, 9 Jun. 2023, https://www.britannica.com/topic/history-of-Latvia . Accessed 19 April 2025. During these two centuries Latvia experienced economic and construction boom – ports were expanded (Riga became the largest port in the Russian Empire), railways built; new factories, banks, and a university were established; many residential, public (theatres and museums), and school buildings were erected; new parks formed; and so on. Riga's boulevards and some streets outside the Old Town date from this period. Numeracy was also higher in the Livonian and Courlandian parts of the Russian Empire, which may have been influenced by the Protestant religion of the inhabitants.

During the 19th century, the social structure changed dramatically. A class of independent farmers established itself after reforms allowed the peasants to repurchase their land, but many landless peasants remained. Many Latvians left for the cities and sought education and industrial jobs. There also developed a growing urban proletariat and an increasingly influential Latvian bourgeoisie. The Young Latvian () movement laid the groundwork for nationalism from the middle of the century, many of its leaders looking to the Slavophiles for support against the prevailing German-dominated social order. The rise in use of the Latvian language in literature and society became known as the First National Awakening. Russification began in Latgale after the Polish led the January Uprising in 1863: this spread to the rest of what is now Latvia by the 1880s. The Young Latvians were largely eclipsed by the New Current, a broad leftist social and political movement, in the 1890s. Popular discontent exploded in the 1905 Russian Revolution, which took a nationalist character in the Baltic provinces.

Declaration of independence and interwar period

World War I devastated the territory and other western parts of the Russian Empire. Demands for self-determination were initially confined to autonomy, until a power vacuum was created by the Russian Revolution in 1917, followed by the Treaty of Brest-Litovsk between Russia and Germany in March 1918, then the Allied armistice with Germany on 11 November 1918. The People's Council of Latvia proclaimed independence, and Kārlis Ulmanis was entrusted to set up a government and he took the position of prime minister. The general representative of Germany August Winnig formally handed over political power to the Latvian provisional government on 26 November, and he became its first prime minister.

The war of independence that followed was part of a general chaotic period of civil and new border wars in eastern Europe. By the spring of 1919, there were actually three governments: the provisional government headed by Ulmanis, supported by the Tautas padome and the Inter-Allied Commission of Control; the Latvian Soviet government led by Pēteris Stučka, supported by the Red Army; and the provisional government headed by Andrievs Niedra, supported by Baltic-German forces composed of the Baltische Landeswehr ("Baltic Defence Force") and the Freikorps formation Eiserne Division ("Iron Division"). Estonian and Latvian forces defeated the Germans at the Battle of Wenden in June 1919, and a massive attack by a predominantly German force—the West Russian Volunteer Army—under Pavel Bermondt-Avalov was repelled in November. Eastern Latvia was cleared of Red Army forces by Latvian and Polish troops in early 1920 (from the Polish perspective the Battle of Daugavpils was a part of the Polish–Soviet War).