Sophie Amalienborg was built as a replacement for Queen's Garden, a complement to King's Garden located outside the Western City Gate, which had been destroyed by the Swedish troops during their Siege of Copenhagen in the Second Northern War from 1658 to 60.