The Kingdom of Aragon was a medieval and early modern kingdom on the Iberian Peninsula, corresponding to the modern-day autonomous community of Aragon, in Spain. It should not be confused with the larger Crown of Aragon, that also included other territories — the Principality of Catalonia (which included the County of Barcelona and the other Catalan Counties), the Kingdom of Valencia, the Kingdom of Majorca, and other possessions that are now part of France, Italy, and Greece — that were also under the rule of the King of Aragon, but were administered separately from the Kingdom of Aragon.

In 1479, upon John II of Aragon’s death, the crowns of Aragon and Castile were united to form the nucleus of modern Spain. The Aragonese lands, however, retained autonomous parliamentary and administrative institutions, such as the Corts, until the Nueva Planta decrees, promulgated between 1707 and 1715 by Philip V of Spain in the aftermath of the War of the Spanish Succession, finally put an end to it.

More Info: en.wikipedia.org