The Danish King remained commander in chief throughout the Early Modern period, in the Thirty Years' War, the Dano-Swedish War (1657–58) and the Scanian War (1675–1679), the Great Northern War (1700–1721), the Theatre War of 1789/9 and the Napoleonic Wars.