
Home › About Slovenia › History
History of Slovenia
From Slavic Carantania to the independence of 1991 — fourteen centuries in one page
The history of Slovenia in a nutshell
Settled by Slavic tribes in the 6th century, Slovenia formed Carantania in the 7th century, one of the first Slavic states in Europe. It then spent nearly six centuries under Habsburg rule (1335-1918), joined Yugoslavia after the First World War, and declared independence on 25 June 1991 after the "Ten-Day War". A member of the European Union and NATO since 2004, it adopted the euro in 2007. In 2026, it stands as one of Central Europe's most stable and prosperous countries.
Key dates
Slavic tribes settle in the eastern Alpine region.
Principality of Carantania, one of Europe's first Slavic states.
The Habsburgs take control of the Slovenian lands — for almost six centuries.
Primož Trubar publishes the first printed book in Slovenian, the Catechism.
The "United Slovenia" programme: the first national political manifesto.
Austria-Hungary collapses; Slovenians join the Kingdom of Serbs, Croats and Slovenes.
Treaty of Rapallo: nearly a third of all Slovenians come under Italian rule.
German, Italian and Hungarian occupation; partisan resistance.
Slovenia becomes a republic of Tito's socialist Yugoslavia.
Plebiscite: almost 90% of voters choose independence.
Declaration of independence, followed by the Ten-Day War.
Slovenia joins the European Union and NATO.
Euro adoption — the first of the new EU members to make the switch.
Slovenia holds the presidency of the Council of the EU.
Carantania, the Slavic cradle of Slovenia
The ancestors of today's Slovenians settled in the eastern Alps in the 6th century. By the 7th century they had organised themselves into a principality, Carantania, centred on present-day Austrian Carinthia. Its most striking feature was the enthronement ritual of its princes, during which a free peasant symbolically handed power to the ruler before the assembly — a ceremony conducted in Slovenian until 1414.
Absorbed into the Frankish and then Germanic sphere, the Slovenian lands became part of the Holy Roman Empire. In 1335 the Habsburgs took over Carniola, Styria and Carinthia. The nobility and towns spoke German; Slovenian survived in the countryside, in parishes — and, from the Reformation onwards, in print: Primož Trubar published the first book in Slovenian in 1550, laying the foundations of the literary language.
The 20th century: wars, borders and Yugoslavia
The collapse of Austria-Hungary in 1918 pushed the Slovenians into the Kingdom of Serbs, Croats and Slovenes, the future Yugoslavia. But the Treaty of Rapallo (1920) ceded the coast and the Karst to Italy: nearly a third of all Slovenians found themselves outside the borders, subjected to forced Italianisation under fascism.
In 1941 the country was carved up between Germany, Italy and Hungary. The partisan resistance was among the most active in occupied Europe. In 1945 Slovenia became one of the six republics of Tito's socialist Yugoslavia — and regained the coastline from Koper to Piran.
Communist but non-aligned, Yugoslavia remained far more open than the Soviet bloc: Slovenians travelled West and worked in Austria and Germany. With 8% of the Yugoslav population, Slovenia produced nearly 20% of the federal GDP — a gap that would fuel the desire for emancipation.

1991: independence and the Ten-Day War
In the late 1980s, economic crisis, democratic protest (the "Slovenian Spring") and Belgrade's centralist drift precipitated the break-up. After the first free elections in April 1990, the plebiscite of 23 December 1990 was unequivocal: almost 90% of voters chose independence.
It was proclaimed on 25 June 1991. The Yugoslav federal army moved in the next day: the Ten-Day War claimed around 70 lives before the Brioni Agreement of 7 July. The last federal soldiers left in October 1991 — Slovenia is the only state to have emerged from Yugoslavia almost without destruction.
What followed was an exemplary transition: international recognition in 1992, EU and NATO accession in 2004, the euro in 2007, Schengen the same year, and two presidencies of the Council of the EU (2008, 2021). 25 June, Statehood Day (dan državnosti), remains the country's defining national holiday.
A nation forged by its culture
Stateless for centuries, the Slovenians survived as a nation through language and culture.
Language above all
Slovenian and its 46 dialects are the national glue. The Romantic poet France Prešeren (1800-1849) is its guardian figure: his Zdravljica became the national anthem, and the anniversary of his death, 8 February, is a public holiday devoted to culture. Learn a few Slovenian words →
Living traditions
The kozolec (wooden hayrack), emblem of the countryside, potica (rolled walnut cake), the Ptuj carnival with its winter-chasing kurenti, and beekeeping with its painted hives: living traditions, several of them recognised by UNESCO.
A small country of great athletes
Tadej Pogačar and Primož Roglič in cycling, Luka Dončić in the NBA, double Olympic climbing champion Janja Garnbret, and the record-breaking ski-jumping hill at Planica: relative to its 2.1 million inhabitants, Slovenia is one of the most successful sporting nations on Earth.
Ready to Discover Slovenia?
Join the travelers who trust e-Slovénie to organize their stay in the heart of Europe.