The Polish interest in an alliance with Brandenburg-Prussia was born out of the need to end the war against Sweden as soon as possible. On 3 November 1656, the Truce of Vilna had promised Alexis of Russia's election as a successor on the Polish throne at the next diet in return for halting his offensive in Poland–Lithuania and to fight Sweden instead. In the Grand Duchy of Lithuania, there was support for the treaty from the nobles, who hoped for positions with more privilege, but that was not true for the Kingdom of Poland, where the elites looked for ways to circumvent Alexis's succession. For a fast end to the war against Sweden to be able to avoid the implementation of the Truce of Vilna, the anti-Swedish alliance had to be extended.