The Chancellor of Norway (modern Norwegian: Norges rikes kansler, "Chancellor of Norway's Realm") was the most important aide of the King of Norway during the Middle Ages. He issued laws and regulations, and was responsible for day-to-day administration of the kingdom. From 1270, the Chancellor resided in Bergen. Haakon V of Norway moved the Chancellor's residence to Oslo; on 31 August 1314 the provost of St Mary's Church became Chancellor on a permanent basis. He was given the Great Seal of the Realm "for eternity." The Chancellors were originally chosen from the clergy. The position lost its importance after Jens Bjelke's tenure, and was abolished in 1679.