The building of Akershus Castle and Fortress (Akershus festning) was commenced in 1299 under king Haakon V and was built in order to protect city from enemy attacks. The vicinity of the sea was of great importance because naval majority of Norwegian commerce in that period was by sea. The fortress was strategically important for the capital, and therefore, Norway as well. Whoever controlled Akershus fortress ruled Norway.