and soon was forced to fight the claims of Louis XI 's successor, King Charles VIII of France to his kingdom. He was crowned on June 26, 1497. Louis XII of France, took these claims on his own and began the conquest of the kingdom from 1499 to 1501 . Frederick had to call upon his cousin Ferdinand II, King of Aragon to repel the French, but the latter, after defeating Louis XII, retained the kingdom for himself. Stripped of his dominions, Frederick was forced to implore the generosity of the King of France, who had made him an annuity of thirty thousand pounds on the duchy of Anjou. Loss of Naples The representatives of Louis XII of France and those of Ferdinand and Isabella of Spain signed a secret treaty in Granada on November 11, 1500. The French and Aragonese sovereigns agreed to attack the Kingdom of Naples, conquer it and immediately divide it between themselves. Louis XII would receive Naples, Terra di Lavoro and Abruzzo and the titles of King of Jerusalem and King of Naples; Ferdinand of Aragon would become Duke of Apulia and Duke of Calabria. Each of the two sovereigns sought the endorsement of Pope Alexander VI, the overlord of these hypothetical territories. In Malaga, Ferdinand armed a fleet of 50 vessels carrying 1,200 horses and 8,000 infantry under the command of Gonzalo de Córdoba. These forces sailed to support the Venetians in the battles against the Turks, then returned after the campaign around 1500–1501 to Sicily. French and Aragonese forces occupied Naples in 1501. Death In August 1501, Naples fell to the invading French army forcing Frederick, now in Blois, to negotiate with Louis XII of France. In return for an annual pension and the county of Maine, he forfeited his rights to Naples. Frederick accompanied Louis into Italy, but returned to Tour in March 1503. He died in Tours in 1504. Marriages and children Frederick married twice. His first wife was Anne of Savoy—daughter of Amadeus IX, Duke of Savoy, and Yolande of Valois, daughter of Charles VII, King of France—whom he married on September 11, 1478, in Milan. With Anne he had one daughter: Charlotte (c. 1479/1480–1506), who married Guy XVI, Count of Laval His second wife was Isabella del Balzo. He also had five children from his second marriage to Isabella: Ferdinand, Duke of Calabria (15 December 1488 – 1550), who