Magnus Haakonsson was King of Norway from 1263 to 1280. One of his greatest achievements was the modernisation and nationalisation of the Norwegian law-code, after which he is known as Magnus the Law-mender. He was the first Norwegian monarch known to have used an ordinal number, although originally counting himself as "IV".
Early life
He was the youngest son of King Håkon Håkonsson and his wife Margaret Skulesdatter. He was born in Tunsberg and was baptised in May 1238. He spent most of his upbringing in Bergen. In 1257 his older brother Håkon died, leaving Magnus the heir-apparent to the kingdom. His father gave him the title of king the same year. On 11 September 1261, he married the Danish princess Ingeborg, the daughter of the late Danish King Erik Plogpenning, after she was practically abducted by King Håkon's men from the monastery she was living in. The struggle to claim Ingeborg's inheritance from her murdered father later involved Norway in intermittent conflicts with Denmark for decades to come. Magnus and Ingeborg were crowned directly after their marriage, and Magnus was given Ryfylke for his personal upkeep. On 16 December 1263 King Håkon died while fighting the Scottish king over the Hebrides, and Magnus became the ruler of Norway.
Reign
Foreign policy
Magnus' rule brought about a change from the somewhat aggressive foreign policy of his father. In 1266 he gave up the Hebrides and the Isle of Man to Scotland, in return for a large sum of silver and a yearly payment, under the Treaty of Perth, by which the Scots at the same time recognised Norwegian rule over Shetland and the Orkney Islands. In 1269 the Treaty of Winchester cemented good relations with the English king Henry III. Magnus also seems to have had good relations with the Swedish King Valdemar Birgersson, and in the 1260s, the border with Sweden was officially defined for the first time. When Valdemar was deposed by his two brothers and fled to Norway in 1275, this stirred Magnus into gathering a leidang-fleet for the first and only time in his reign. With a large fleet, he met with the new Swedish King Magnus Ladulås to try to bring about a settlement between the two brothers, but without success, Magnus of Sweden would not give in to pressure and the Magnus of Norway retreated without engaging in hostile actions.
Internal policies
In internal politics, Magnus carried out a great effort to modernise the law-code, which gave him his epithet law-mender. These were adopted at the Things in the years 1274 and 1276. In 1274 he promulgated the new national law, known as Magnus Lagabøtes landslov, a unified code of laws to apply for the whole country, including the Faroe Islands and Shetland. This replaced the different regional laws which had existed before. It was supplemented by a new municipal law in 1276, Magnus Lagabøtes bylov, and a slightly modified version was also drawn up for Iceland. A unified code of laws for a whole country was at this time something quite new, which had until then only been introduced in Sicily and Castile. His code introduced the concept that crime is an offense against the state rather than against the individual and thus narrowed the possibilities of personal vengeance. It increased the formal power of the king, making the throne the source of justice. The municipal law gave the cities increased freedom from rural control. A specific section fixed the law of succession to the throne, in accordance with the arrangements laid down by King Håkon Håkonsson in 1260. The royal succession was an important and prickly matter, the last of the civil wars, fought for decades over disputed successions to the throne, having finally ended only in 1240. In 1273 Magnus gave his eldest son, five-year-old Eric, the title of king, and his younger brother Håkon the title of duke, thus making it unequivocally clear who would be his heir. Although Magnus was by all accounts a personally very pious king, his work with the law-codes brought him into conflict with the archbishop, who resisted temporal authority over the church, and sought to preserve the church's influence over the kingdom. The Tønsberg Concord signed in 1277 between King Magnus and Jon Raude, Archbishop of Nidaros, confirmed certain privileges of the clergy, the freedom of episcopal elections and similar matters. The church preserved considerable independence in judicial matters, but gave up its old claim that the Norwegian kingdom was a fief under the ultimate authority of the Catholic Church. In cultural terms Magnus continued his father's policy of introducing European courtly culture to Norway. In 1277 he replaced the old Norse titles lendmann and skutilsvein with the European titles baron and riddar, at the same time giving them certain extra privileges and the right to be addressed as lord. Magnus is probably also the first Norwegian king to have named himself using an ordinal number - he called himself "Magnus IV" and Magnus Sigurdsson ). Immediately after his father's death, he commissioned the Icelander Sturla Þórðarson to write his father's saga, or biography. In 1278, he commissioned the same man to write his own saga. The Saga of Magnus the lawmender thus became the last of the medieval Norwegian kings' sagas; unfortunately only a short fragment of it has been preserved.
Death and aftermath
In the spring of 1280, Magnus fell ill in Bergen. He planned to have his son Eric crowned at midsummer as co-ruler, but died on 9 May. Eric succeeded him at the age of 12. Real power fell to a circle of advisors, prominent among them Magnus' widow, Ingeborg. Magnus was remembered as a good ruler, who ruled by law rather than by the sword. The nationalist-conservative historian Oscar Albert Johnsen, leader of the Institute of Medieval Texts, founded during the Third Reich occupation of Norway, have considered him a weak king, for giving up the Hebrides and giving in to demands of the church,. Mostly considered a rather wise king, sparing the kingdom of unnecessary and unfruitful wars, while preserving stability at home and finally bringing the Icelandic Commonwealth under Norwegian control. Magnus was buried in the church of the Franciscan monastery in Bergen, which has since the 16th century been the Bergen Cathedral.