Kingdom of Sardinia and Aosta, dynastic possessions since the 11th century, the Principality of Piedmont (a possession built up in the 13th century), and the County of Nice (a possession since 1388). While in theory the traditional capital of the island of Sardinia and seat of its viceroys was Cagliari, the Piedmontese city of Turin was the "de facto" capital of Savoy. When the mainland domains of the House of Savoy were occupied and eventually annexed by Napoleonic France, the king of Sardinia made his permanent residence on the island for the first time in its history. The Congress of Vienna (1814–15), which
Kingdom of Sardinia when the new Kingdom of Sardinia and Corsica defeated the Arborea Judicatus in a battle in Sanluri and its sovereign rights were sold by the last Judex. Later, the title of King of Sardinia was granted by the Emperor of the Holy Roman Empire to Barisone II of Arborea and Enzio of Sardinia. The first could not reunify the island under his rule, despite years of war against the other Sardinian judices, and he finally concluded a peace treaty with them in 1172. The second did not have the opportunity. Invested with the title from his father, Emperor Frederick II