The dynastic union with Aragon occurred in two periods: from the year 1000 to 1035 and from the year 1076 to 1134.
Like all peninsular kingdoms, the different marriages or conquests made the territories belong to different crowns, as happened with León, Asturias, etc.
On February 18, 1513, Ferdinand the Catholic staged the solemn annexation of Navarre to the crown of Castile, swearing his Cortes and his privileges before the procurators.
He had waited for Pope Julius II to promulgate the bull of deposition of the Albret, sovereigns of the kingdom, to impose the rights of his second wife Germana de Foix. In any case, the Duke of Alba had already imposed military logic, in those days much more effective than the dynastic, reaching Pamplona.
In the sights of Fernando II of Aragon, son of Juan II "the great" and therefore stepbrother of Leonor I, was always Navarre, as well as the Italian territories.
Fernando was a typical warrior-king of the time who would not end until his great-grandson, Philip II.
Curiously, the origin of the Bourbons as the reigning dynasty starts with Queen Juana III of Navarra when she married a Bourbon and the Valois branch was considered extinct. And curiously also, the first Bourbon king of France not only had Navarrese origin but also married a great-granddaughter of Juana I "la loca", Maria de Medici (daughter of Archduchess Juana, in turn daughter of Emperor Ferdinand II, brother of Carlos I of Spain)
The Trastamara came to rule in all the peninsular kingdoms with this fact, except Portugal that would be annexed during the reign of Felipe II.
It is a pity that Juana I of Spain could not leave her surname and therefore her dynasty, the Trastamara as it would have been logical.