Denmark and the Holy Roman Empire signed the Peace of Lübeck, ending Danish involvement in the Thirty Years' War and confirming imperial dominance in northern Germany.