Marianus IV, called the Great, was the Judge of Arborea, kingdom in the island of Sardinia, from 1347 to his death. He was, as his nickname indicates, the greatest sovereign of Arborea. He was a legislator and a warrior whose reign saw the commencement of massive codification of the laws of his realm and incessant warfare with the Crown of Aragon. He was also a religious man, who had connections to Catherine of Siena. He was, in short, an "wise legislator, able politician, and valiant warrior."
Early life in Catalonia
Born at Oristano, he was the son of Hugh II and successor of his brother Peter III. At the behest of his father he spent most of his youth in Barcelona, where he was educated at the court of Alfonso IV of Aragon. He participated actively in the coronation of Peter IV in 1336. In 1336 in Barcelona, he married Timbora, daughter of Dalmatius IV of Rocabertí and Beatrice of Serrallonga, Baroness of Cabrenys. In 1339, he was invested by Peter with the counties of Goceano and Marmilla, in Sardinia. In 1347, the Doria rebelled and defeated the Catalans at Aidu de Turdu, occupying Bonorva. This sparked a long war between Aragon and Genoa, but at the outset the Doria could not take advantage of their victory. On 11 September 1349, he returned to Oristano, two years after succeeding his childless elder brother. One of his first acts was to repopulate the town of Goceano, rebuild the castle there, and plant a florid garden.
War with Aragon
Though an alliance had been in effect with Aragon for more than fifty years at the time of his accession, Marianus realised that the political aim of Peter IV was nothing less than the annexation of Sardinia and, following the conquest of Alghero, he parted ways with the Catalans. He allied with the Genoese and the Doria, then at war with Aragon, and made himself an enemy of the Aragonese. Marianus' first directive was against Gherardo della Gherardescha, a loyal Pisan vassal of the Aragonese. He attacked Castel di Castrofrom the south but was rebuffed. He initiated a siege until his Doria allies could attack from the north. They did, and took Alghero. His armies proved successful in the field and he succeeded in expelling the Aragonese from every redoubt on the island save the stronghold of Castel di Castro. He even menaced Sassari in 1354. Later that year, Peter IV landed on the island at Nulauro. Marianus promptly began a guerilla war of ambushes against royal troops until, at the end of 1355, a brief peace was signed at Sanluri by which Marianus renounced Alghero. The peace lasted two years, during which Marianus reinforced his armies and the country progressed favourably economically. In 1365, the war resumed with full force. Pope Urban V confirmed Arborean possession of the whole of the island save Sassari, Alghero, and Cagliari. Peter IV, however, sent a fleet commanded by Pere de Luna to lead an Aragonese army deep into Arborea, bypassing other fortifications to assault Oristano. The Aragonese troops were trapped between the Arborean armies commanded by Marianus and his son, the futureHugh III, and defeated. In 1368, Marianus finally occupied Sassari. He was preparing another campaign when he died in 1376.
Legislation
During the two-year peace, Marianus began the work of putting down in writing the oral laws and customs of Arborea. The chief legislative work of his lifetime was the Codice Rurale, which his daughter Eleanor later incorporated into her massive Carta de Logu. His great work, however, was cut short by his sudden death of the bubonic plague in 1376.