. Frontispiece of a 1495 edition of
Catalan constitutions. Isabella made her will on 12 October 1504 in advance of her death on 26 November 1504. In it, she spelled out the succession to the Crown of Castile, leaving it to
Joanna and then to Joanna's son Charles. Isabella was dubious of Joanna's ability to rule and was not confident of Joanna's husband Archduke
Philip. Ferdinand moved quickly after his wife's death to continue his role in Castile. On the day of his wife's death, he formally renounced his title as King of Castile and instead became governor (
gobernador) of the kingdom as a way to become regent. Philip deemed his wife sane and fit to rule. A compromise was forged between Philip and Ferdinand, which gave Ferdinand a continued role in Castile. Ferdinand had served as Joanna's regent during her absence in the
Netherlands, ruled by her husband Archduke Philip. Ferdinand attempted to retain the regency permanently, but was rebuffed by the Castilian nobility and replaced with Joanna's husband. In the
Treaty of Villafáfila of 1506, Ferdinand renounced not only the government of Castile in favor of Philip but also the lordship of the Indies, withholding half of the income of the "kingdoms of the Indies". Joanna and Philip immediately added to their titles the kingdoms of Indies, Islands and Mainland of the Ocean Sea. But the Treaty of Villafáfila did not hold for long because of the death of Philip; Ferdinand returned as regent of Castile and as "lord of the Indies". The widowed Ferdinand made an alliance with France in July 1505 and married
Germaine of Foix, cementing the alliance with France. She was the granddaughter of his half-sister Queen
Eleanor of Navarre and niece of Louis XII of France. Had Ferdinand's son with Germaine, John, Prince of Girona, born on 3 May 1509, survived, "the crown of Aragon would inevitably been separated from Castile" Ferdinand had no legal position in Castile, with the
cortes of Toro recognizing Joanna and her children as heirs, and Ferdinand left Castile in July 1506. After his son-in-law Philip's untimely death in September 1506, Castile was in crisis. Joanna was allegedly mentally unstable, and Joanna's and Philip's son, Charles, the future Emperor
Charles V, was only six years old. Cardinal
Francisco Jiménez de Cisneros, the Chancellor of the Kingdom, was made regent, but the upper nobility reasserted itself. Ferdinand led an army against
Pedro Fernández de Córdoba y Pacheco, the
marquis of Priego of
Córdoba, who had seized control there by force. in Madrid By 1508, Ferdinand had triumphed and war resumed in Italy, this time against the
Republic of Venice, in which all the other powers with interests on the Italian peninsula, including Louis XII, Ferdinand II, Maximilian, and
Pope Julius II joined together in the
League of Cambrai. Although the French were victorious against Venice at the
Battle of Agnadello, the League of Cambrai soon fell apart, as both the Pope and Ferdinand II became suspicious of French intentions. Instead, the 'Holy League' was formed, in which now all the powers joined together against Louis XII and France. In November 1511, Ferdinand and his son-in-law King
Henry VIII of England signed the
Treaty of Westminster, pledging mutual aid between the two against
Navarre and France ahead of the
Spanish invasion of Navarre as of July 1512. After the fall of Granada in 1492, he had manoeuvred for years to take over the throne of the
Basque kingdom, ruled by Queen
Catherine of Navarre and King
John III of Navarre, also lords of
Béarn and other sizeable territories north of the
Pyrenees and in
Gascony. Ferdinand annexed Navarre first to the Crown of Aragon, but later, under the pressure of Castilian noblemen, to the Crown of Castile. The Holy League was generally successful in Italy as well, driving the French from Milan, which was restored to its
Sforza dukes by the peace treaty in 1513. The French were successful in reconquering Milan two years later, however. Ferdinand II died on 23 January 1516, in
Madrigalejo,
Extremadura, Kingdom of Castile and Leon. He is entombed at
Capilla Real,
Granada. His wife Isabella, daughter Joanna, and son-in-law Philip rest beside him there. ==Legacy and succession==