A state of the Holy Roman Empire in the Austrian Circle and a duchy in the hereditary possession of the Habsburgs, later part of the Austrian Empire and of Austria-Hungary, the region was a crown land from 1849, when it was also subdivided into Upper Carniola, Lower Carniola, and Inner Carniola, until 1918. From the second half of the 13th century, its capital was Ljubljana (Laibach). Previous overlords of Carniola had their seats in Kranj (Krainburg) and Kamnik (Stein), which are therefore sometimes referred to as its earlier capitals. Nowadays, its territory (in the extent at its dissolution) is almost entirely located in Slovenia, except for a small part in northwest Italy, around Fusine in Valromana.[note 2] Carniola in its final form, established in 1815, encompassed 9,904 km2 (3,824 sq mi). In 1914, before the beginning of World War I, it had a population of slightly under 530,000 inhabitants, of whom 95% were Slovenes.