 George II Rákóczi, Prince of Transylvania, invaded the Polish–Lithuanian Commonwealth without seeking the Ottoman sultan's consent in January 1657.He had concluded an agreement with King Charles X of Sweden about the partition of the Commonwealth and wanted to secure the Polish throne for himself.Rákóczi had also entered into correspondence with Count Miklós Zrínyi (or Nikola Zrinski), a prominent aristocrat in Royal Hungary, who offered the Hungarian throne to him against the Habsburg monarch, Leopold I.