The Dano-Swedish War of 1657–1658 was a conflict between Sweden and Denmark–Norway during the Second Northern War. In 1657, Charles X of Sweden and his Swedish army were bogged down in Poland. Frederick III of Denmark-Norway saw an opportunity to recover the territories lost in 1645 and attacked Sweden. The outbreak of war with Denmark provided Charles with an excuse to withdraw from the Polish campaign and move against Denmark.