European rivalries continue to be played out in Naples through the competing foreign factions that claimed sovereignty over the kingdom, culminating in the Treaty of Blois in 1505, which transferred Neapolitan authority to the Spanish kingdom of Aragon.