In 1410, the king died without leaving an heir to the throne. Finding no legitimate alternative, leaders of the realms composing the Crown of Aragon agreed by means of the Compromise of Caspe that the vacant throne should go to the Castilian Ferdinand I, as he was among the nearest relatives of the recently extinguished House of Barcelona through a maternal line. The new dynasty began to assert the authority of the Crown, leading to a perception among the nobility that their traditional privileges associated with their position in society were at risk. From 1458 to 1479, civil wars between King John II and local chieftains engulfed Catalonia.