a time), Count of Barcelona, Lord of Montpellier, and (temporarily) Duke of Athens and Neopatria. Each of these titles gave him sovereignty over the specific region, and the titles changed as territories were lost and won. According to Aragonese law, the monarch had to swear allegiance to the kingdom's laws before being accepted as king. Like other Pyrenean and Basque realms, the Aragonese justice and decision-making system was based on Pyrenean consuetudinary law, the King was considered primus inter pares ('first among equals') within the nobility. A nobleman with the title "Chustizia d'Aragón" acted as ombudsman and was responsible for ensuring that the King obeyed the Aragonese laws. An old saying goes, "en Aragón antes de Rey hubo Ley" ("in Aragon Law came before King"), similar to the saying in Navarre, "antes fueron Leyes que Reyes", with much the same meaning. The subsequent legend made the Aragonese monarchy eligible and created a phrase for the coronation of the king that would be perpetuated for centuries: This situation would be repeated in the Commitment of Caspe (1412), which avoids a war that had dismembered the Crown of Aragon when a good handful of aspirants to the throne emerged after the death of Martin of Aragon a year after the death of his first-born, Martin I of Sicily. Ferdinand I of Aragon is the chosen one, of the Castilian House of Trastámara, but also directly connected with the Aragonese king Peter IV of Aragon, through his mother Eleanor of Aragon. Aragon was already a large-scale political entity: the Crown, the Cortes, the Deputation of the Kingdom and the Foral Law constituted its nature and its character. The marriage of Ferdinand II of Aragon with Isabella I of Castile, celebrated in 1469 in Valladolid, derived later in the union of the crowns of Aragon and Castile, creating the basis of the Modern State. Early Modern Age c. 1500–1789 The Early Modern Age was marked by increasing tension between the power of the Spanish Monarchy and those of the regions. The appointment of a Castilian as Viceroy in 1590, contrary to the agreement all Royal officials be Aragonese caused widespread unrest; when the Madrid authorities attempted to arrest the Aragonese writer and politician Antonio Perez in May 1591, it caused street violence in Zaragossa and a revolt known as the Alterations of Aragon. The unrest was largely confined to Zaragossa and quickly suppressed, with