The left fortress was built by Danes in 1256, but was since improved vastly by Sweden up throgh 17th Century. The right fortress is built in 1492.
Although these fortresses have seen many wars, the one I was referring to was World War 2, where both were heavily damaged, but since restored.