count of Foix, Roger-Bernard II. Roger-Bernard II and Ermessenda shared rule over Andorra with the bishop of Urgell. In the 13th century, a military dispute arose between the bishop of Urgell and the count of Foix as aftermath of the Cathar Crusade. The conflict was resolved in 1278 with the mediation of the king of Aragon, Peter III, between the bishop and the count, by the signing of the first paréage, which provided that Andorra's sovereignty be shared between the count of Foix (whose title would ultimately transfer to the French head of state) and the bishop of Urgell, in Catalonia. This gave the principality its territory and political form. A second paréage was signed in 1288 after a dispute when the count of Foix ordered the construction of a castle in Roc d'Enclar. The document was ratified by the noble notary Jaume Orig of Puigcerdà, and construction of military structures in the country was prohibited. In 1364, the political organization of the country named the figure of the syndic (now spokesman and president of the parliament) as representative of the Andorrans to their co-princes, making possible the creation of local departments (comuns, quarts and veïnats). After being ratified by Bishop Francesc Tovia and Count John I, the Consell de la Terra or Consell General de les Valls (General Council of the Valleys) was founded in 1419, the second oldest parliament in Europe. The syndic Andreu d'Alàs and the General Council organized the creation of the Justice Courts (La Cort de Justicia) in 1433 with the co-princes and the collection of taxes like foc i lloc (literally "fire and site", a national tax active since then). Although there are remains of ecclesiastical works dating before the 9th century (Sant Vicenç d'Enclar or Església de Santa Coloma), Andorra developed exquisite Romanesque Art during the 9th through 14th centuries, particularly in the construction of churches, bridges, religious murals and statues of the Virgin and Child (Our Lady of Meritxell being the most important). Nowadays, the Romanesque buildings that form part of Andorra's cultural heritage stand out in a remarkable way, with an emphasis on Església de Sant Esteve, Sant Joan de Caselles, Església de Sant Miquel d'Engolasters, Sant Martí de la Cortinada and the medieval bridges of Margineda and Escalls among many others. The Catalan Pyrenees were embryonic of the Catalan language at the end of the 11th century. Andorra was influenced