Fredrikstad Fortress was constructed between 1663 and 1666 by the officer Willem Coucheron and his son Anthony Coucheron following the order of the Dano-Norwegian King Frederick II. A temporary fortification had previously been built on the site during the Torstenson War (1644–1645) between Sweden and Denmark–Norway. The first commander was appointed 6 January 1662; he was Lieutenant Colonel Johan Eberhard