Catania was under the Islamic emirate of Sicily from 875 until 1072, when it fell to the Normans of Roger I of Sicily. Subsequently, the city was ruled by a bishop-count. In 1194–1197 the city was sacked by German soldiers during after the conquest of the island by emperor Henry VI. In 1232 it rebelled to the former's son, Frederick II, who later built a massive castle, "Castello Ursino" and also made Catania a royal city, ending the dominance of the bishops. Catania was one of the main centers of the Sicilian Vespers revolt (1282) against the House of Anjou, and was the seat of the incoronation of the new Aragonese king of Sicily, Peter I. In the 14th century it gained importance as it was chosen by the Aragonese as a Parliament and Royal seat. Here, in 1347, it was signed the treaty of peace that ended the long War of the Vesper between Aragonese and Angevines. Catania lost its capital role when, in the early 15th century, Sicily was turned into a member of the Crown of Aragon, and kept its autonomy and original privileges specially during the period from 1282 to 1410.