The history of Slovenia chronicles the period of the Slovenian territory from the 5th century BC to the present. In the Early Bronze Age, Proto-Illyrian tribes settled an area stretching from present-day Albania to the city of Trieste. Slovenian territory was part of the Roman Empire, and it was devastated by Barbarian incursions in late Antiquity and Early Middle Ages, since the main route from the Pannonian plain to Italy ran through present-day Slovenia. Alpine Slavs, ancestors of modern-day Slovenians, settled the area in the late 6th Century A.D. The Holy Roman Empire controlled the land for nearly 1,000 years, and between the mid 14th century and 1918 most of Slovenia was under Habsburg rule. In 1918, Slovenes formed Yugoslavia along with Serbs and Croats, while a minority came under Italy. The state of Slovenia was created in 1945 as part of federal Yugoslavia. Slovenia gained its independence from Yugoslavia in June 1991, and is today a member of the European Union and NATO.