The Dano-Swedish War (1813–1814) also referred to as Charles John’s campaign against Denmark, or as the War for Norway (Danish: Kampen om Norge) was the Coalition campaign against Denmark-Norway led by the Swedish crown prince Charles John, and it was the last major conflict between Denmark and Sweden. The war was a part of Sweden's campaign against the French Empire, who after defeating at The Battle of the Nations turned its attention to Napoleon's last ally Denmark–Norway. Denmark was invaded through its German duchies, who later became occupied. In the peace treaty Denmark was forced to give Norway to Sweden, ending the 400 year personal union between them.
edit