Slovenia: a history from Carantania to the European Union

For most of its history Slovenia was ruled by the Habsburgs. In 1991 it became the first republic to break away from Yugoslavia, after a war of just ten days.

By Last reviewed

Slovenia
Slovenia and its neighbours. Borders approximate.

Key facts

Capital
Ljubljana
Independence
25 June 1991
Population
About 2.1 million
Language
Slovene
Memberships
European Union and NATO since 2004
Currency
Euro since 2007

Through the ages

The main periods of Slovenia's history, 658 CE to today. Recent centuries are drawn wider so they can be read.

  1. Carantania658 CE to 828 CE
  2. Frankish and German rule828 CE to 1335
  3. Habsburg rule1335 to 1918
  4. Yugoslavia1918 to 1991
  5. Republic of Slovenia1991 to today

Timeline

  1. c. 658 CE
    Empires and dynasties

    Carantania

    Alpine Slavs, ancestors of the Slovenes, form the principality of Carantania, one of the first Slavic states.

  2. 828 CE
    Empires and dynasties

    Frankish rule

    Carantania is absorbed into the Frankish empire, and later the Holy Roman Empire.

  3. 1335
    Empires and dynasties

    The Habsburgs

    The Habsburgs acquire Carinthia and Carniola. They rule the Slovene lands for nearly six centuries.

  4. 1550
    Culture and faith

    The first Slovene books

    The Protestant reformer Primož Trubar publishes the first printed books in Slovene.

  5. 1809
    Politics

    The Illyrian Provinces

    Napoleon creates the Illyrian Provinces with Ljubljana as capital, encouraging the use of Slovene in schools. Austria returns in 1813.

  6. 1848
    Politics

    United Slovenia

    Slovene leaders call for all Slovene lands to be united under one administration within the Habsburg Empire.

  7. 1895
    Disasters

    The Ljubljana earthquake

    An earthquake damages much of Ljubljana, which is rebuilt with new buildings in the Vienna Secession style.

  8. 1918
    Politics

    Yugoslavia

    As Austria-Hungary collapses, Slovenia joins the new Kingdom of Serbs, Croats and Slovenes.

  9. October 1918
    Politics

    The State of Slovenes, Croats and Serbs

    As Austria-Hungary falls, a short-lived state is declared in Zagreb before joining Serbia in December.

  10. 1941 to 1945
    Wars and conflict

    Occupation and resistance

    Germany, Italy and Hungary divide and occupy Slovenia. A partisan resistance fights the occupiers.

  11. 1945
    Politics

    A Yugoslav republic

    Slovenia becomes one of the six republics of Tito's Yugoslavia.

  12. 25 June 1991
    Independence

    Independence and the Ten-Day War

    Slovenia declares independence. A ten-day conflict with the Yugoslav army ends with the army's withdrawal.

  13. 2004
    Treaties and agreements

    EU and NATO

    Slovenia joins both the European Union and NATO.

  14. 2007
    Economy

    The euro

    Slovenia becomes the first of the new members of 2004 to adopt the euro.

  15. December 2007
    Treaties and agreements

    Schengen

    Slovenia joins the Schengen area of passport-free travel.

  16. 2008
    Politics

    EU presidency

    Slovenia becomes the first former communist country to hold the rotating presidency of the Council of the EU.

An Alpine people

The Slovenes are descended from Slavs who settled the eastern Alps in the sixth century. In the seventh century they formed Carantania, one of the earliest Slavic states, whose princes were installed in a ceremony held in the Slovene language. In the ninth century Carantania was absorbed into the Frankish empire, and the Slovene lands then passed through the hands of German nobles and the Holy Roman Empire.

Six centuries under the Habsburgs

From 1335 the Habsburgs acquired Carinthia and Carniola, and for nearly six hundred years the Slovenes lived under Habsburg rule, mostly as peasants under a German-speaking nobility. Their language survived in the countryside and the church. In the Reformation the Protestant Primož Trubar printed the first books in Slovene in 1550, laying the foundation of the written language. Napoleon briefly made Ljubljana the capital of his Illyrian Provinces and encouraged Slovene in schools, and in the nineteenth century a national movement grew, led by poets such as France Prešeren, whose verses are now the national anthem.

Yugoslavia

When Austria-Hungary collapsed in 1918, the Slovenes joined the new Kingdom of Serbs, Croats and Slovenes, later Yugoslavia, though they lost lands to Italy and Austria. In the Second World War Slovenia was carved up by Germany, Italy and Hungary, and a partisan movement fought the occupiers. Under Tito it became the most prosperous and western-looking of the Yugoslav republics.

Independence

In the late 1980s Slovenes pressed for democracy and greater freedom. Slovenia declared independence on 25 June 1991. The Yugoslav army moved in, but after ten days of fighting it withdrew, and Slovenia escaped the long wars that followed elsewhere. It joined the European Union and NATO in 2004, was the first of the new members to adopt the euro in 2007, and in 2008 became the first former communist country to hold the EU presidency.

Today Slovenia is one of the most prosperous countries of central Europe, with forests covering more than half its land and a short stretch of Adriatic coast. Its karst landscape gave the world the scientific word for limestone caves and sinkholes.

Slovenia is small but varied: in a day one can travel from the peaks of the Julian Alps, crowned by Triglav, its highest mountain and national symbol, through the Karst to the Adriatic. Ljubljana’s old town, rebuilt after an earthquake in 1895, centres on Plečnik’s Triple Bridge over the Ljubljanica river.

For our latest reporting on Slovenia, see the news listed on this page.

Landmarks and heritage

Natural site

Škocjan Caves

Karst region

A vast system of limestone caves with one of the largest underground canyons in the world. A UNESCO World Heritage Site.

1920s to 1950s

Plečnik's Ljubljana

Ljubljana

Bridges, squares and buildings by the architect Jože Plečnik that shaped the capital. A UNESCO World Heritage Site.

Natural and medieval

Lake Bled

Julian Alps

An Alpine lake with a church on its only island and a castle on the cliff above.

Terms you will meet in the news

Carantania
The early medieval Slavic principality in the eastern Alps, seen as the first Slovene state.
Ten-Day War
The brief conflict of June and July 1991 in which Slovenia secured its independence from Yugoslavia.
Karst
A landscape of limestone caves and sinkholes, named after the Kras region of Slovenia.
Triglav
Slovenia's highest mountain, shown on its national coat of arms.
Ljubljana
Slovenia's capital and largest city, on the Ljubljanica river.

Quick answers

When did Slovenia become independent?

It declared independence from Yugoslavia on 25 June 1991, and the Ten-Day War that followed ended with the withdrawal of the Yugoslav army.

Is Slovenia in the euro zone?

Yes. It adopted the euro in 2007, the first of the countries that joined the EU in 2004 to do so.

Where does the word karst come from?

From the Kras plateau in Slovenia, whose limestone caves and sinkholes gave their name to such landscapes everywhere.

Does Slovenia have a coast?

Yes, a short stretch of about 47 kilometres on the Adriatic, with the port of Koper and the old town of Piran.

When did Slovenia join the EU?

On 1 May 2004, weeks after joining NATO.

Who designed much of modern Ljubljana?

The architect Jože Plečnik, whose bridges, squares and buildings are listed by UNESCO.

Sources and further reading

Compiled by The Indus Compass from the sources above and standard reference works, and reviewed 27 November 2026. Dates before the modern era are approximate and some are debated by historians. Spotted a mistake? Tell the newsroom and we will correct it.