Kingdom of Aragon shared a monarchy with the Kingdom of Navarre. From 1150 to 1319, the Kingdom of Aragon and the County of Barcelona (actually the Principality of Catalonia) formed a dynastical union named Crown of Aragon; from 1319 to 1479, the Crown was a federation of these two countries and the Kingdom of Valencia. The Kingdoms of León and Castile were united three times under the same monarch, first between 1037 and 1078, again from 1072 to 1157, and finally between 1230 and sometime in the 16th century. Between 1072 and 1095 León, Castile, and Galicia were united under a common monarch, whereafter Portugal separated under a different dynasty, and the others were absorbed by Spain. The Kalmar Union was a period between 1397 and 1536 in which Denmark, Norway and Sweden shared the same monarch as three independent countries. Norway and Denmark continued to share a monarchy from 1536 to 1814. Norway was then united under a common monarchy with Sweden from 1814 to 1905. From 1490 to c. 1740 Hungary and Bohemia (part of the Holy Roman Empire) shared a monarchy. These kingdoms shared a monarch from the Habsburgs who were Archdukes of Austria and Holy Roman Emperors. Briefly Naples and Sardinia in 1707, and Sicily in 1714 to their departure in 1735, 1720 and 1734, respectively. The Habsburgs declared themselves Emperors of Austria in 1804. The three countries remained in this situation until the union was ended in the aftermath of World War I, in 1918. The Austro-Hungarian Empire was the union of the Austrian Empire and the Kingdom of Hungary between 1867 and 1918 under a new constitution, the Austro-Hungarian Compromise of 1867, or Ausgleich. From 1541, King Henry VIII of England was declared King of Ireland, after being excommunicated by the pope and losing the title of Lord of Ireland. England and Ireland were joined in a personal union until 1603, when the James VI of Scotland became king of England and Ireland. All three crowns remained in personal union until 1707 when England and Scotland were united by the Acts of Union 1707 to become the Kingdom of Great Britain. The two crowns remained under personal union until the Acts of Union 1800 when the kingdoms became the United Kingdom of Great Britain and Ireland. This union lasted until Irish Independence in 1921 when with the departure of the 26 southern counties of