the reign of Magnus Lagabøte, or Magnus Lawmender
(1263-1280), a common national law code was charted, co-ordinating the
laws of the four regional assemblies (lagting) and giving the king the
responsibility for legislation.
However, Magnus Lagabøte was fiercely opposed by the church, which was led by Archbishop Jon Raude. Jon Raude, who was made archbishop in 1268, insisted that all matters relating to church law should remain under the jurisdiction of the church. He fought obstinately to retain the church's judicial authority in church matters and for increased church revenue.
A treaty in 1277, the so-called "sættargjerde", represented a compromise between the church and the King. Jon Raude relented on some of the church's demands while he succeeded in winning concessions on several points relating to finances and legislation. Among other things, he secured the archbishop's right to mint coins, he gained acknowledgement (and extension) of the church's judicial authority and of its authority to impose fines, and he was granted tax-exemption for the church.
When Magnus Lagabøte died in 1280 and his son Eirik Magnusson was crowned, a regency governed the country on behalf of Eirik. Conflict developed between Jon Raude and the regency when the latter refused to acknowledge the "sættargjerd". In 1282 Jon Raude was forced to flee to Sweden, where he died later the same year.