Charles X Gustav of Sweden
After the start of the Swedish invasion of Poland known as "The Deluge", John Sobieski was among the Greater Polish regiments led by Krzysztof Opaliński, Palatine of Poznań which capitulated at Ujście, and swore allegiance to King Charles X Gustav of Sweden. However, around late March 1656, he abandoned their side, returning to the side of Polish king John II Casimir Vasa, enlisting under the command of hetmans Stefan Czarniecki and Jerzy Sebastian Lubomirski.