After its disintegration in 658, the ancestors of Slovenes located in present-day Carinthia formed the independent duchy of Carantania.
In the mid-8th century, Carantania became a vassal duchy under the rule of the Bavarians, who began spreading Christianity.
Such uprisings, which often met with bloody defeats, continued throughout the 17th century.
In 1918, the Slovenes exercised self-determination for the first time by co-founding the internationally unrecognized State of Slovenes, Croats, and Serbs, which merged with Kingdom of Serbia into Kingdom of Serbs, Croats and Slovenes (in 1929 renamed into Kingdom of Yugoslavia).
During World War II, Slovenia was occupied and annexed by Germany, Italy, Croatia, and Hungary.
In 2002, more than 4,500 years old remains of pile dwellings were discovered in the Ljubljana Marshes, now protected as a UNESCO World Heritage Site, along with the Ljubljana Marshes Wooden Wheel, the oldest wooden wheel in the world.
In the transition period between the Bronze age to the Iron age, the Urnfield culture flourished.
They encompassed Carniola, southern part of Carinthia, southern part of Styria, Istria, Gorizia and Gradisca, Trieste, and Prekmurje.