Denmark was an ally of the Habsburg Holy Roman Empire, and it was evident that Sweden was on the verge of yet another war with that country. A remedy was attempted by chancellor Nils Brahe, who traveled to Copenhagen in the spring of 1675 to try to get the Danish princess Ulrika Eleonora of Denmark engaged to the Swedish king. In mid-June 1675, the engagement was officially proclaimed. However, when news arrived of the Swedish defeat at the Battle of Fehrbellin, Danish king Christian V declared war on Sweden that September.