Mansfeld captured Dünamünde, Fellin, and Kokenhusen, but when Chodkiewicz returned, the tide turned. In 1609 Chodkiwicz once more he relieved Riga besides capturing Pernau. Chodkiewicz also defeated the Swedish flotilla at Salis and finally defeated Mansfeld's army once again near the river Gauja. Eventually, a truce was signed in 1611 after the death of Charles IX. It would last until 1617 (or November 1620, conflicting sources). During the next decade, the Commonwealth was occupied with its aggression against Russia. Southern borders were also endangered by the constant troubles with Ottoman Empire during the Moldavian Magnate Wars.