From 1788 to 1790, the so-called Gustav III's war, started by Gustav III, was fought between Sweden and Russia. Sweden was also confronted by Denmark. The officers in the Anjala conspiracy, among others, opposed the war. Despite a decisive marine victory at the Battle of Svensksund, Sweden did not gain any new territories in the Treaty of Värälä. The Union and Security Act of 1789 strengthened the king's power even more. With the war, the nobility grew even more bitter towards the king, and this eventually led to the king's murder in 1792.