Very unfortunately for Denmark the Swedish King Karl X Gustav immediately ended his campaign in Poland and marched west towards Jutland, which was taken in the fall of 1657. Since the Danish navy was stronger than the Swedish it didn't seem critical, but then it started to be a very harsh winter and the Belts froze over, keeping the Danish/Norwegian navy in ports.
The Swedes were able to cross the Little Belt and take Funen and then also cross the Great Belt landing on Zealand.
The Danes were forced to a very hard peace in Roskilde 1658 with the Danish loss of Scania, Halland, Blekinge, Hven and Bornholm and Norwegian loss of Båhuslen and Trondheim-len.
Then after the peace the Swedish King reconsidered; why shouldn't he end Denmark once and for all while his army still occupied all the Danish territories except Zealand? So Karl X Gustav broke the peace and send a force to siege Copenhagen.
The Danish/Norwegian King Frederik III was advised to flee to Norway, but he declared that he "would stay in his nest" bolstering the defenders moral. When the Swedes took Elsinore and Kronborg castle in September the Danes in Copenhagen were totally boxed in.
The Dutch had promised to help Denmark in case of an unprovoked attack and a Dutch navy was able to break through the Swedish naval siege and land 2000 marines to help with the defenses. The Dutch had supported the Swedes in war 1643-1645 against Denmark to avoid the Danish Sound Toll, but now it looked that by weakening Denmark, they had made it possible for a much more powerful country to emerge as controller of the Sound Toll.
The Swedish siege force were eventually a professional 9000 man strong against ~10.000 defenders. Besides the 2000 Dutch, you had a mix of Danish professional soldiers (3000 men), city militia (3500) and the rest other willing townspeople. The population of Copenhagen was 29.000 at the time.
When the Swedes attacked in Feb. 1659, Danish spies was aware of the three locations in time to inform the defenders, so they could put on a strong defense including ambushes. It was a disaster for the Swedes. The Swedes lost 532 dead and 894 wounded before the attack was called of, with only 12 Danes died (other sources say 17 Danes, so I guess that is wounded that died after the battle).
The first Swedish officer that managed to actually scale the Danish defenses was killed by Claus Ahlefeldt using his partizan.
This weapon thus received cult status, as Denmark was saved as a country (and Danes as a people, when you later see what happened in Scania, Halland and Blekinge).
The dual existence of Denmark/Norway and Sweden/Finland (critically on each side of Øresund so no one could control the strait and exact a Sound Toll) was especially of interest to Holland, England and Russia -> so this was the last time a united Scandinavia was close to form.
[ Linked Image ]
Source: http://upload.wikimedia.org/wikipedia/commons...rtical.jpg
The weapon is 265,5 cm long.
For bigger pictures:
Source: http://upload.wikimedia.org/wikipedia/commons...rtical.jpg
Source: http://upload.wikimedia.org/wikipedia/commons...agonal.jpg
Picture with darker background:


Claus Ahlefeldt's partizan.
Source: http://samlinger.natmus.dk/DMR/168065