of Zaragoza arose, one of the most important Taifas of Al-Andalus, leaving a great artistic, cultural and philosophical legacy. The name of Aragon is documented for the first time during the Early Middle Ages in the year 828, when the small County of Aragon of Frankish origin, would emerge between the rivers that bear its name, the Aragón river, and its brother the Aragón Subordán river. That County of Aragon would be linked to the Kingdom of Pamplona until 1035, and under its wing it would grow to form a dowry of García Sánchez III of Pamplona until the death of the king Sancho "the Great", in a period characterized by Muslim hegemony over almost the entire Iberian Peninsula. During the reign of Ramiro I of Aragon the borders would be extended following the annexation of the counties of Sobrarbe and Ribagorza (year 1044), after having incorporated the populations of the historical comarca of Cinco Villas. In 1076, on the death of Sancho IV of Pamplona, Aragon incorporated part of the Navarrese kingdom into its territories while Castile did the same with the western area of the former domains of Sancho "the Great". During the reigns of Sancho Ramírez and Peter I of Aragon and Pamplona, the kingdom extended its borders to the south, established threatening fortresses in the capital of Zaragoza in El Castellar and Juslibol and took Huesca, which became the new capital. The reign of Alfonso I of Aragon saw the conquering of the lowlands of the middle Ebro Valley for Aragon: Ejea de los Caballeros, Valtierra, Calatayud, Tudela and Zaragoza, the capital of the Taifa of Saraqusta. Upon his death the nobles would choose his brother Ramiro II of Aragon, who left his religious life to assume the royal scepter and perpetuate the dynasty, which he achieved with the dynastic union of the House of Aragon with the owner of the County of Barcelona in 1137, year in which the union of both patrimonies would give rise to the Crown of Aragon and would add the forces that would make the conquests of the Kingdom of Majorca and the Kingdom of Valencia possible. The Crown of Aragon would become the hegemonic power of the Mediterranean, controlling territories as important as Sicily, Corsica, Sardinia or Naples. The monarch was known as King of Aragon and also held the titles of King of Valencia, King of Majorca (for