The ancestors of the Slovenians are the Slavic tribes who settled here in the 6th century AD. In the 7th century they formed the state of Carantania. This was on of the first Slavonic states in Europe. In the 8th century Caranatania accepted the protectorate of the Frank Empire in exchange for the military support. Meanwhile Carantania remained independent till 1180 when it collapsed. The frank influence caused Christianization of Slovenians.
In the year of 1000 the chronicle «Brižinski spomeniki» was written, that is the first written document in the Slovenian language.
In the XIV century the Habsburg dynasty came to power on the whole territory of the modern Slovenia, eventually it led to that Slovenia entered the Austria-Hungary and was divided into three provinces – Kranjska, Schtajerska en Horishka.
The replacement of the main trade routes and the Thirty-year War of the 17th century caused the serious economy decline. In the 18th century the development of the agriculture was brought back to life: the production of different articles increased, the volume of agricultural production increased twice. Besides at that time the movement for national enlightenment unfolded, thanks to it this period was called the Slovenian Renaissance.
In the beginning of the 18th century the biggest part of Slovenia was included in the Illirian provinces. In the middle of the 19th century , especially during the Austrian Revolution in 1848-1849 the Slovenian national movement developed, in the area of Austrian Coast with the center in the town of Krajna.
After Astria-Hangary had been collapsed in 1918, Italy invaded the the territory of the Slovenia Coast and included this area into own Venice-Guilia region. The rest of the Slovenian territory was taken by the newly formed Kingdom of Serbs, Croats and Slovenians. Later, in 1929 the Kingdom changed the name to Yugoslavia.
In 1941 after fascist countries attacked Yugoslavia, Italy and Germany dictated their will in the region. Italy occupied the territory up to Ljubljana, Germany – the rest with the city of Maribor. During the Second World War the Kingdom of Yugoslavia was abrogated. Slovenia became the part of the Socialist Federative Republic of Yugoslavia. (SFRY), it was manifested in November of 1945. Then the Slovenian lands of Horishka and Obalna-Krashka were returned back after the Italian occupation.
At the end of the XX century when it became evident that the communist regime is inconsistent, the Socialist Federative Republic of Yugoslavia began falling apart at the seams. 5 June 1991 the referendum was called, where 90% of Slovenians voted for independence from Yugoslavia. On the 23rd of December in 1991 the Constitution of the Republic of Slovenia was introduced.
After the Socialist Federative Republic of Yugoslavia split up, the war followed. This war lasted 10 days. During these ten days 72 skirmishes took place. The Yugoslavian Army lost 145 soldiers killed, 146 injured. Almost 5000 militaries and 250 civil servants were captivated. From the Slovenian side – 19 people were killed (9 of them were soldiers), 182 people got injured. 12 citizens of the foreign countries were killed (they were drivers of international transport companies).