Sweden attacked Poland in 1655. The goal was to gain full control over the Baltic Sea. During the two first years, Swedish troops occupied large parts of Poland and the war was almost won. In 1656, Sweden won the battle of Warsaw, but the Polish resistance hardened and the farmers began fighting a guerrilla war against the Swedes.