Near the beginning of the Thirty Years' War in 1625, King Christian IV of Denmark saw an opportunity to gain valuable territory in Germany to balance his earlier loss of Baltic provinces to Sweden. But Christian was defeated, and the Peace of Lübeck in 1629 finished Denmark as a European power.