When the war started, John II had been
King of Navarre since 1425 through his first wife,
Blanche I of Navarre, who had married him in 1420. When Blanche died in 1441, John retained the government of her lands and dispossessed his own eldest son, Charles (born 1421), who was made
Prince of Viana in 1423. John tried to assuage his son with the lieutenancy of Navarre, but his son's French upbringing and French allies, the Beaumonteses, brought the two into conflict. In the early 1450s they were engaged in
open warfare in Navarre. Charles was captured and released; and John tried to disinherit him by illegally naming his daughter
Eleanor, who was married to
Gaston IV of Foix, his successor. In 1451 John's new wife,
Juana Enríquez, gave birth to a son,
Ferdinand. In 1452 Charles fled his father first for France, later for the court of his uncle, John's elder brother,
Alfonso V at
Naples. From 1454 John governed his brother's Spanish realms—the
Crown of Aragon—as lieutenant. depicting the Catalan Courts in session When Alfonso died in 1458, Charles was arrested and brought to
Majorca. John succeeded Alfonso as ruler of the Crown of Aragon. In his will, Alfonso named Charles as his heir. Among John's early unpopular acts was to quit the war against
Genoa, upsetting the merchants of Barcelona. He also refused to aid his nephew,
Ferdinand I of Naples, in securing his throne. In 1460 Charles left Majorca unauthorised and landed in
Barcelona, where he was welcomed by the two chief factions, the
Busca, which were merchants, artisans, and laborers, and the
Biga, which were honored citizens and landlords. John did not initially react to the situation, but he called Charles to his court at
Lleida to discuss the proposed marriage of Charles to
Isabella,
infanta of
Castile. He still refused to recognise Charles as his "first born", probably seeking to reserve that title for Ferdinand, but arousing opposition in the meantime. Charles opened negotiations with
Henry IV of Castile, his father's inveterate enemy. At Lleida on 2 December 1460 he was arrested and imprisoned in
Morella. the
Catalan Courts (the parliament) were called for 8 January 1461. At the parliament, Joan Dusai, the noted
doctor of laws, ruled that the king had violated four of the
Usatges de Barcelona, four of the
Constitucions de Catalunya, and the
Furs (Laws) of
Lleida. The parliament then demanded that John name Charles as his first-born son and heir. This he refused, and the parliament assembled an army under the
Count of Modica. The army quickly captured
Fraga and John capitulated in February. He freed Charles on 25 February and, on 21 June 1461, signed the
Capitulation of Vilafranca, whereby Charles was recognised as his first-born son, lieutenant in perpetuity, and heir in all his realms. The king also surrendered his right to enter the Principality of Catalonia without the permission of the Generalitat. He was also forced to surrender royal prerogatives. The appointment of royal officials was to be done only on the advice of representative bodies. The treaty was a victory for the Catalanists (who stressed Catalan independence and pre-eminence), pactists (who stressed the relationship between monarch and Catalonia as a mutual agreement), and the foralists (who stressed the ancient privileges, the
fueros, of Catalonia). Charles died of
tuberculosis in Barcelona on 23 September 1461, a fact which threatened the treaty of 21 June. While Charles had inspired unity, his death sparked the reemergence of factionalism. Though the treaty allowed for the young Ferdinand, only nine years old, to succeed John, Ferdinand's mother was conspiring with the Busca against the Biga to have the treaty overturned. ==Revolt of the remences==