The Catalonian Civil War, also called the Catalan Civil War or the War against John II, was a civil war in the Principality of Catalonia, then belonging to the Crown of Aragon, between 1462 and 1472. The two factions, the royalists who supported John II of Aragon and the Catalan constitutionalists (Catalanists, pactists, and foralists), disputed the extent of royal rights in Catalonia. The French entered the war at times on the side on John II and at times with the Catalans. The Catalans, who at first rallied around John's son Charles of Viana, set up several pretenders in opposition to John during the course of the conflict. Barcelona remained their stronghold to the end: with its surrender the war came to a close. John, victorious, re-established the status quo ante.
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.