 For Rákóczi ignored his instructions, Köprülü Mehmed ordered the Crimean Tatars to attack the Transylvanian army in Poland.Polish troops invaded Transylvania and his allies abandoned Rákóczi who was forced to sign a humiliating peace treaty, promising to pay 1,2 million florins as compensation to the Commonwealth on 22 July 1657.Rákóczi hurried back to Transylvania, leaving the bulk of his army behind.