Skip to content

Search a place, an artwork, a question

    The stone curtain wall and a tower of Ljubljana Castle on its hill, with green grass in front and a clear blue sky

    History

    A short history of Slovenia, told to make sense of what you'll see

    Facts checked on

    In a nutshell

    Slovenia's history is that of a young state on ancient ground, from prehistoric pile dwellings at Ig and Roman towns such as Emona (Ljubljana), Celeia (Celje) and Poetovio (Ptuj) to Carniola, first recorded in 973, and the first books in Slovenian in 1550. After centuries under the Habsburgs and more than seventy years in Yugoslavia came independence on 25 and 26 June 1991.

    Quick facts

    Roman towns
    Emona, Celeia, Poetovio
    Carniola
    First recorded 973, duchy 1364
    First books in Slovenian
    1550, Primož Trubar
    Plebiscite
    23 December 1990
    Independence
    25 and 26 June 1991
    EU and NATO
    2004

    The essentials in a few lines

    Full read: 3 min

    • Slovenia has prehistoric pile dwellings, three big Roman towns and medieval Carniola.
    • The first books printed in Slovenian date from 1550, by Primož Trubar.
    • It was part of the Habsburg lands and, from 1918 to 1991, of Yugoslavia.
    • It declared independence on 25 and 26 June 1991.
    What I would do

    I understand Slovenian history better on the road than in a book. I'd follow it in four stops, Ptuj for the Romans, Celje for the counts, the Kobarid Museum for the First World War and Ljubljana for the rest.

    My key points

    What I would keep in mind

    1. 01 Most beautiful

      Three Roman towns you can still walk

      The Slovenian government names Emona, forerunner of Ljubljana, Celeia, now Celje, and Poetovio, now Ptuj, as the three main Roman towns. In Celje the remains lie in the basement of the Princely Court.

      Ptuj
    2. 02 My tip

      The Isonzo Front, in the Soča Valley

      From Italy's entry into the war in 1915, the Soča became one of the bloodiest fronts of the First World War. The Kobarid Museum explains it better than any book.

      Kobarid Museum
    3. 03 Getting there

      Ten days of war in 1991

      After the declaration of 26 June 1991 an armed conflict with the Yugoslav People's Army followed, the Ten-Day War, which ended with the Brioni Declaration on 7 July.

      Slovenia Independence Day
    4. 04 Most beautiful

      The Counts of Celje

      In the 14th and 15th centuries the Counts of Celje were among the region's most powerful families; Barbara of Celje became Holy Roman Empress, according to the government.

      Celje Castle

    My checklist before setting off

    Slovenian history in dates

    DateWhat happened
    PrehistoryPile dwellings in the Ljubljana Marshes; Hallstatt culture in the Iron Age
    Roman periodEmona, Celeia and Poetovio; the Claustra Alpium Iuliarum defences
    6th and 7th centuriesSlavic-speaking settlers arrive; Carantania
    973First mention of Carniola
    1364Carniola becomes a duchy
    1550Trubar publishes the first printed books in Slovenian
    1584Dalmatin's Bible and Bohorič's grammar
    1809-1813Illyrian Provinces, governed from Ljubljana
    1848The United Slovenia programme
    1915-1917Soča (Isonzo) Front
    1918 and 1929Kingdom of Serbs, Croats and Slovenes; Kingdom of Yugoslavia
    1941-1945Occupation by Germany, Italy and Hungary, and resistance
    1945Slovenia becomes a republic of socialist Yugoslavia
    23 Dec 1990Plebiscite: 88.5% of all voters back independence
    25 and 26 June 1991Independence acts and declaration
    7 July 1991Brioni Declaration ends the Ten-Day War
    22 May 1992Joins the United Nations
    2004 and 2007NATO and EU; euro and Schengen

    Government of Slovenia, «History of Slovenia», checked on 4 and 15 October 2026.

    What I would book

    From pile dwellings to Rome

    The earliest traces you can visit are in the Ljubljana Marshes, where people built prehistoric pile dwellings; those at Ig are now World Heritage, part of a listing shared by six Alpine countries. The Iron Age brought the Hallstatt culture, and in Roman times the area had three main towns, Emona, forerunner of Ljubljana, Celeia, today’s Celje, and Poetovio, today’s Ptuj, plus smaller centres such as Nauportus at Vrhnika. Rome also built a defensive system here, the Claustra Alpium Iuliarum, with forts such as Ad Pirum at Hrušica. For this period I’d start in Ptuj.

    Slavs, Carniola and the Counts of Celje

    Between the 6th and 7th centuries a Slavic-speaking population settled the area. Carantania emerged, a principality centred north of present-day Slovenia, in what is now Austrian Carinthia, and Christianity arrived from Aquileia and Freising. Carniola is first recorded in 973 and had become a duchy by 1364. In the 14th and 15th centuries the Counts of Celje dominated the scene, with figures such as Anne of Celje, Queen of Poland, and Barbara of Celje, Holy Roman Empress through her marriage to Sigismund of Luxembourg. It was also the time of Ottoman raids.

    Trubar, the written language and Napoleon

    My favourite moment in Slovenian history comes in 1550. In 1550 the first books ever printed in Slovenian appeared, Primož Trubar’s catechism and primer, and in 1584 came the Bible translated by Jurij Dalmatin and the grammar written by Adam Bohorič. More than two centuries later, between 1809 and 1813-1814, part of the territory passed to Napoleon’s empire as the Illyrian Provinces, with Ljubljana as the seat of the governor-general. In 1848 the United Slovenia programme called for all Slovene-speaking lands in the empire to be brought together in one administrative unit. How that history lives on in the language is in the language of Slovenia.

    Once your dates are set, check which hotels are still free in Ljubljana before prices climb.

    The Isonzo Front and Yugoslavia

    The First World War hit hard from 1915, when Italy entered the war and the Soča Front opened, the Isonzo of the history books, which the government calls one of the bloodiest fronts of the conflict. When Austria-Hungary collapsed, the central Slovene lands joined the Kingdom of Serbs, Croats and Slovenes, renamed the Kingdom of Yugoslavia in 1929. After the 1920 Carinthian plebiscite part of the Slovene population stayed in Austria, and the Littoral, Gorizia, the Trieste hinterland and part of Istria came under Italian rule.

    In April 1941 the Axis attack brought down the Kingdom of Yugoslavia, and Slovene territory was carved up between Germany, Italy and Hungary, with a small part annexed to the Independent State of Croatia. Occupation brought deportations and repression as well as organised resistance around the Liberation Front, and the government itself describes those years as particularly complex, with a difficult legacy. After 1945 Slovenia was a republic within socialist Yugoslavia, which broke with the Soviet Union in 1948, while the western border was settled in stages, through the London Memorandum of 1954 and the Treaty of Osimo of 1975.

    Independence in 1991

    In April 1990 Slovenia held its first multi-party elections since the Second World War, and on 23 December that year a plebiscite saw 88.5% of all eligible voters, 95% of those who voted, back independence. The Assembly passed the independence acts on 25 June 1991 and the declaration followed on the 26th. An armed conflict with the Yugoslav People’s Army followed, the so-called Ten-Day War, which ended with the Brioni Declaration on 7 July 1991. International recognition came in early 1992, and on 22 May that year Slovenia joined the UN. What each date means today is in Slovenia’s Independence Day. The national symbols, with Triglav on the coat of arms, are explained in Slovenia flag.

    Once your dates are set, check which hotels are still free in Ljubljana before prices climb.

    From Yugoslavia to the EU

    The rest is recent. Slovenia joined the Council of Europe in 1993, NATO and the EU in 2004, the euro on 1 January 2007 and Schengen that December. For a traveller that means open borders and euros, as I explain in Slovenia in the EU. If I had just one day to make sense of all this, I’d spend it at Ljubljana Castle, around 900 years old and home to an exhibition on the country’s history.

    Ptuj Castle and the old town rooftops above the Drava, seen from a bridge with a cycle and footpath

    Ptuj Castle and the old town rooftops above the Drava, seen from a bridge with a cycle and footpath

    A room in the Kobarid Museum with display cases, war photographs on the walls and Austro-Hungarian and Italian flags

    A room in the Kobarid Museum with display cases, war photographs on the walls and Austro-Hungarian and Italian flags

    The crenellated walls of Celje's Old Castle and a ruined tower, with long grass and trees at their foot

    The crenellated walls of Celje's Old Castle and a ruined tower, with long grass and trees at their foot

    Test yourself

    True or false?

    0/4 Pick before you peek.

    1. Slovenia became independent from Yugoslavia in 1991.

      See the answer

      True. The independence acts were passed on 25 June and independence was declared on 26 June 1991.

    2. The first printed books in Slovenian date from the 19th century.

      See the answer

      False. They date from 1550, when Primož Trubar published a catechism and a primer, according to the government.

    3. Ljubljana was the seat of Napoleon's Illyrian Provinces.

      See the answer

      True. Between 1809 and 1813-1814 it housed the governor-general of the Illyrian Provinces, according to the Slovenian government.

    4. The Isonzo Front was part of the Second World War.

      See the answer

      False. It was a First World War front, opened when Italy entered the war in 1915, along the Soča river.

    First mention of Carniola
    973
    First printed books in Slovenian
    1550
    Voters in favour at the 1990 plebiscite
    88.5%
    Year of independence
    1991

    Frequently asked questions

    When did Slovenia become independent?

    The Assembly passed the independence acts on 25 June 1991 and the declaration followed on 26 June. A plebiscite on 23 December 1990 had seen 88.5% of all eligible voters back independence.

    What country was Slovenia part of before?

    Yugoslavia, from 1918 as the Kingdom of Serbs, Croats and Slovenes, renamed the Kingdom of Yugoslavia in 1929, and from 1945 as a republic of the socialist federation. Before that, for centuries, the Habsburg monarchy.

    What was the Ten-Day War?

    The armed conflict between Slovenia's Territorial Defence and police and the Yugoslav People's Army after the declaration of independence. It ended with European Community mediation and the Brioni Declaration on 7 July 1991.

    What happened in Slovenia in the Second World War?

    In April 1941 the territory was occupied and divided between Germany, Italy and Hungary, with a small part annexed to the Independent State of Croatia. There was organised resistance and harsh repression, and the government describes the period as particularly complex.

    What was Slovenia called in Roman times?

    There was no single name for the whole area. The government lists three main Roman towns, Emona (Ljubljana), Celeia (Celje) and Poetovio (Ptuj), plus smaller centres such as Nauportus (Vrhnika).

    When did Slovenia join the UN?

    On 22 May 1992, after international recognition in early 1992, starting with the twelve member states of the European Community.

    0 of 425 Slovenia guides

    Your next stamp

    1. Independence Day
    2. Facts
    3. Two weeks in Slovenia
    Sergio Lepone

    Questions about Slovenia? Write to me

    I read every email. If a fact is wrong or missing, tell me and I will check it.

    My email sergiolepone@gmail.com

    Sergio Lepone

    By

    Tourism graduate with a master’s in Tourism Management and Planning from the University of Málaga, who has travelled across Europe. He writes every guide from official sources and his own judgement.

    Published on . Updated on . Facts checked on .

    How I check every fact and where it comes from

    Some links in this guide are affiliate links: if you book through them, the site earns a commission at no extra cost to you. Affiliate disclosure

    Photos: Tournasol7 (CC BY 4.0); focusonmore.com (CC BY 2.0); Lokiseinchef (CC BY 3.0); Szilas (CC BY-SA 4.0), via Wikimedia Commons.