The Principality of Catalonia was a medieval and early modern state. "This group of states comprised the kingdoms of Aragon, Valencia, and Majorca, the principality of Catalonia, and the counties of Roussillon and Cerdagne; further afield it embraced the kingdoms of Sicily and Sardinia. These states had no common institutions or bonds save allegiance to a common sovereign." in the northeastern Iberian Peninsula. For most of its existence it was in personal union with the Kingdom of Aragon and other states, constituting together the composite monarchy known as the Crown of Aragon. It was bordered by the Kingdom of Aragon to the west, the Kingdom of Valencia to the south, the Kingdom of France to the north and by the Mediterranean Sea to the east. Its sovereign or prince had the title of Count of Barcelona. Established in the second half of the 12th century as a result of the territorial, legislative and institutional evolution of the County of Barcelona, it ceased to exist as an independent political entity after the pro-Habsburg defeat of 1714 in the War of the Spanish Succession and the subsequent suppression of the Catalan institutional system by the Nueva Planta Decree of 1716. However, it remained as a territorial division until 1833. Today, the term Principat ("Principality") is used primarily to refer to the autonomous community of Catalonia in Spain, as distinct from the other Catalan Countries.

The first reference to Catalonia and the Catalans appears in the Liber maiolichinus, a Pisan chronicle (1117-1125) of the conquest of Majorca by a joint force of Northern Italians, Catalans, and Occitans. At the time, Catalonia did not yet exist as a political entity, though the use of this term acknowledge Catalonia as a cultural or geographical entity. The counties that eventually made up the Principality of Catalonia were gradually unified under the rule of the count of Barcelona. In 1137, the County of Barcelona and the Kingdom of Aragon formed a dynastic union, later known as the Crown of Aragon; however, Aragon and Catalonia retained their own political structure and legal systems, developing separate political communities along the next centuries. Under Alfons I the Troubador (1162–1196), Catalonia was regarded as a political entity for the first time in 1173, while the term Principality of Catalonia was fully formalized in 1343.

Its institutional system evolved over the centuries, establishing political bodies analogous to the ones of the other kingdoms of the Crown (such as the Courts, the Generalitat or the Consell de Cent) and legislation (Constitutions and Usatges) which largely limited the royal power and secured the political model of pactism (contractual system between the monarch and the Estates). Catalonia contributed to further develop the Crown trade and military, most significantly their navy. The Catalan language flourished and expanded as more territories were added to the Crown, including Valencia, the Balearic Islands, Sardinia, Sicily, Naples, and Athens. In the 15th century, the end of the rule of House of Barcelona (1410), serf and urban conflicts and a ten-year civil war (1462–1472) weakened the role of the Principality within the Crown and at international affairs.

In 1516, Charles V became monarch of both the crowns of Aragon and Castile, creating a personal union, the Monarchy of Spain. In 1492 the Spanish colonization of the Americas began, and political power began to shift away towards Castile. Tensions between Catalan institutions and the monarchy, alongside the peasants' revolts, provoked the Reapers' War (1640–1659), who saw the brief establishment of a Catalan Republic. By the Treaty of the Pyrenees (1659) the Roussillon was ceded to France. During the War of the Spanish Succession (1701–1714), the Crown of Aragon supported the Archduke Charles of Habsburg. After the surrender of Barcelona in 1714, King Philip V of Bourbon, inspired by the French model, imposed absolutism and a unifying administration across Spain, and enacted the Nueva Planta decrees for every realm of the Crown of Aragon, which suppressed Catalan, Aragonese, Valencian and Majorcan institutions and legal systems and merged them into the Crown of Castile as provinces, ending their status as states.

History

Origins The Visigoths ruled after the Western Roman Empire's collapse near the end of the 5th century. Moorish Al-Andalus gained control in the early 8th century, after conquering the Visigothic kingdom in 711–718. After the defeat of Abd al-Rahman ibn Abd Allah al-Ghafiqi's troops at Tours in 732, the Franks gradually gained control of the former Visigoth territories north of the Pyrenees, which had been captured by the Muslims, in what is today Languedoc and Northern Catalonia. In 795, Charlemagne created what came to be known by historiography and some Frankish chronicles as the Marca Hispanica, a buffer zone beyond the province of Septimania, made up of locally administered counties (designated under the collective name of Catalan counties in modern times) which served as a defensive barrier between the Umayyad of Al-Andalus and the Frankish Kingdom.

A distinctive Catalan culture started to develop in that period stemming from these small counties throughout the northernmost part of current Catalonia. The counts of Barcelona were Frankish vassals nominated by the Carolingian emperor, then the king of the Franks, to whom they were feudatories (801–988). In 878, Wilfred the Hairy, an ethnic Visigoth from Carcassona, count of Urgell and Cerdanya, was appointed count of Barcelona, Girona and Osona. Since then, Girona and Osona were subsumed and, over time, integrated into Barcelona, becoming the political core of the future Principality of Catalonia. Upon his death in 897 Wilfred made his titles hereditaries and thus founded the House of Barcelona, which would rule over Catalonia until the death of Martin I, its last ruling member, in 1410. Many abbeys were founded between the ninth century and the twelfth century while in the cities the episcopal seats were restored, being important artistic and intellectual centers which contribute to an important diffusion of the Romanesque art in Catalonia (monasteries of Santa Maria de Ripoll and Montserrat, collegiate church of Cardona, cathedral of Girona...) as well as to the maintenance of rich libraries nourished by Classical, Visigothic and Arab works. The scholar and mathematician Gerbert d'Aurillac (future pope Sylvester II) studied in Vic and Ripoll and knowledge of mathematics and astronomy were introduced from Arabic.

In 988 Count Borrell II did not recognise the Frankish king Hugh Capet and his new dynasty, effectively taking Barcelona out of Frankish rule.Salrach, Josep Mª. (2004). Catalunya a la fi del primer mil·leni. Pagès Editors. Lleida, pp. 144–149. From that point on, the counts of Barcelona sometimes referred to themselves as princeps (prince), in order to show their preeminence and sovereignity. During the 9th and 10th centuries, the counties increasingly became a society of aloers, peasant proprietors of small, family-based farms, who lived by subsistence agriculture and owed no formal feudal allegiance. At the start of the 11th century the Catalan Counties suffer an important process of feudalization, as the miles formed links of vassalage over this previously independent peasantry. The middle years of the century were characterized by virulent class warfare. Seigniorial violence was unleashed against the peasants, utilizing new military tactics, based on contracting well armed mercenary soldiers mounted on horses. By the end of the century, most of the aloers had been converted into serfs. Under the reign of countess Ermesinde of Carcassonne (1017–1057), which received the government of Barcelona after the death of her husband the count Ramon Borrell,Albertí, Elisenda (2007). Dames, reines, abadesses, 18 personalitats femenines a la Catalunya medieval. Albertí Editor, pp. 17–21. the disintegration of central power became evident. The response of the Catholic Church to the feudal violence was the establishment of the sagreres (the immediate area surrounding the churches, considered sacred and free from violence) and the movement of Peace and Truce of God.Head, Thomas F.; Landes, Richard Allen (1992). The Peace of God: Social Violence and Religious Response in France Around the Year 1000. Cornell University Press. The first assembly of Peace and Truce was presided by Abbot Oliba in Toulouges, Roussillon in 1027. The grandson of Ermesinde, count Ramon Berenguer I, began the codification of Catalan law in the written Usages of Barcelona which was to become the first full compilation of feudal law in Western Europe. Legal codification was part of the count's efforts to forward and somehow control the process of feudalization.

Under count Ramon Berenguer III, the County of Barcelona experienced a new phase of territorial expansion.Viñamata, J. R. Julia (1992). La situazione politica nel Mediterraneo Occidentale all'epoca di Raimondo Berengario III: La spedizione a Maiorca del 1113–1115. 16: pp. 41–84. This included the incorporation of the counties of Besalú and Cerdanya, a joint Catalan-Pisan Crusade against the Taifa of Majorca (1114) and the conquest of Tarragona (1116), restoring in the last one the archiepiscopal see of the city (1119), which was previously disbanded after the Muslim conquest. That meant the independence of the Catalan Church from the bishopric of Narbonne.History of the Archdiocese of Tarragona. The Middle Ages Archdiocese of Tarragona Official Website.

Dynastic union

In 1137 count Ramon Berenguer IV of Barcelona received the donation of the neighboring Kingdom of Aragon from king Ramiro II of Aragon, and in 1150 married his daughter, queen Petronilla, establishing the dynastic union of the County of Barcelona and its dominions with the Kingdom of Aragon, resulting in a composite monarchy known as the Crown of Aragon. The reign of Ramon Berenguer IV saw the Catalan conquest of Lleida and Tortosa. Their son, Alfons, was the first king to rule Aragon and Barcelona together; the titles would be perpetually linked from then on. During the reign of Alfons, in 1173, Catalonia was legally delimited for the first time, while the first compilation of the Usages of Barcelona was made in the process to turn them into the law of Catalonia (Consuetudinem Cathalonie). Apart from the Usages, between 1170 and 1195 the Liber feudorum maior (cartulary containing documents of the estates of the Royal house and the other comital houses that were incorporated into it) and the Gesta Comitum Barchinonensium (chronicle describing the origins, genealogical succession, and dynastic continuity of the counts of Barcelona) were compiled and written, being considered together as the three milestones of Catalan political identity.Cingolani, Stefano Maria (2006). "Seguir les Vestígies dels Antecessors. Llinatge, Reialesa i Historiografia a Catalunya des de Ramon Berenguer IV a Pere II (1131–1285)", Anuario de Estudios Medievales, p. 225.

His son, King Peter I (II of Aragon) "the Catholic", faced the defense of the Occitan territories, acquired from the times of Ramon Berenguer I onwards, from the Albigensian Crusade. The Battle of Muret (12 September 1213) and the unexpected defeat of King Peter and his vassals and allies, the counts of Toulouse, Comminges and Foix, against the French–Crusader armies, resulted in the fading of the strong human, cultural and economic ties existing between the ancient territories of Catalonia and the Languedoc.Tucker, Spencer (2010). A Global Chronology of Conflict, Vol. I, ed. ABC-CLIO, 269.