In 1660, the Swedish garrison withdrew from Elbing (Elbląg), but the Polish–Lithuanian Commonwealth seized it before Brandenburg-Prussia although had npyy paid the sum agreed on in Bromberg. That made Frederick William I not support Poland in the contemporary Russo-Polish War but yielded the neutrality agreement that he had concluded with Russia in 1656. Poland was to keep the town until the First Partition of Poland in 1772, with short interruptions in 1698/1699 and 1703. In 1698, Polish King Augustus II the Strong permitted Prussian troops to besiege and storm Elbing, but the Prussian troops withdrew in the following year when Russia mediated its exchange for the Polish Crown Jewels as a security for the bills receivable. When Augustus the Strong failed to pay, the town was reoccupied in 1703, during the Great Northern War, but the Prussians again withdrew shortly afterwards because of Swedish pressure.