كونتية برشلونة
In 988 Borrell II, Count of Barcelona, did not recognise the new French king Hugh Capet as his king, evidencing the loss of dependency from Frankish rule and confirming his successors (from Ramon Borrell I to Ramon Berenguer IV) as independent of the Capetian crown whom they regarded as usurpers of the Carolingian Frankish realm. At the beginning of eleventh century the Catalan counties suffered an important process of feudalisation, partially controlled by the church's sponsored Peace and Truce Assemblies and by the negotiation skills of the Count of Barcelona Ramon Berenguer I, which began the codification of feudal law in the written Usages of Barcelona, becoming the basis of the Catalan law. In 1137, Ramon Berenguer IV, Count of Barcelona decided to accept King Ramiro II of Aragon's proposal to marry Queen Petronila, establishing the dynastic union of the County of Barcelona with the Kingdom of Aragon, creating the Crown of Aragon and making the Catalan counties that were united under the county of Barcelona into a principality of the Aragonese Crown.