In the Treaty of Lübeck Christian IV retained Denmark but had to stop his support for the Protestant German states. This gave the Catholic powers the opportunity to take more Protestant land during the next two years. It restored to Denmark-Norway its pre-war territory at the cost of final disengagement from imperial affairs.