Mehmed IV, having concluded in 1681 the war with Russia, was getting ready to take up the defense of Thököly and move against Austria. Facing a choice of leaving the Habsburg state to its own fate or forming with it a coalition to defeat the Ottoman invaders, Sobieski chose the second option, distancing himself from and acting internally against the pro-French camp.