Hugh II (ruled 1321 – 1336), great-grandson of Marianus II, headed up a faction which favoured James II of Aragon, who had been promised the island by the pope, as overlord. He supported the "Infante" Alfonso in his campaign (1323 – 1324) to conquer the island from Pisa. In 1336, Hugh II was succeeded by his son Peter III (died 1345). His brother Marianus IV (ruled 1353 – 1375) was the only Sardinian ruler to be known as "the Great." He was educated at the Aragonese court (that is in the Crown of Aragon's royal court), but later turned against his cultural allies and led a victorious revolt against the Catalan invaders (Sardinian-Catalan War). With Marianus IV the great, a period of splendour commenced in the Kingdom of Arborea. Oral traditions were codified and new legislation enacted. Army and tactics were reformed. With the exception of Cagliari, Alghero, and Sassari (then under Brancaleone Doria), Marianus conquered the whole of the island, making Arborea the strongest any "kingdom" had ever been.