The treaty was signed following the Polish victory at the Battle of Chudnov. The treaty meant that the Cossacks withdrew their support from Russia in the Russo-Polish War (1654–67), and transferred it back to the Commonwealth. The war would eventually be concluded with the 1667 Treaty of Andrusovo.