 He also managed to buy the services of the viceroy Peter of Foix to have the young Queen Catherine married to John, prince of Castile-Aragon.Magdalena found the arrangement, removing Peter from office.Finally, an arrangement with Alain of Albret paved the road for the young Gascon noble John's accession to the throne of Navarre in February 1484, thwarting again the Aragonese king's plans.