The only time the fortress were attacked was during the Swedish–Norwegian War (1814). The fortress, under the command of Nils Christian Frederik Hals, capitulated on 4 August 1814.