Most notably various territorial wars with Sweden, Russia and Prussia, the Napoleonic Wars on the side of France, and the Second World War, controversially and famously against the wishes of the Danish government, which had ordered immediate surrender to Germany.