Polish king John III Sobieski planned to restore Polish suzerainty over the Duchy of Prussia, and for this purpose concluded an alliance with France on 11 June 1675. France promised assistance and subsidies, while Sobieski in turn allowed French recruitment in Poland-Lithuania and promised to aid Hungarian rebel forces who were to distract the Habsburgs from their war against France. For this plan to work out, Poland-Lithuania had to first conclude her war against the Ottoman Empire, which French diplomacy despite great efforts failed to achieve. Furthermore, Sobieski was opposed by the Papacy, by Polish gentry who saw the Ottomans as the greater threat, and by Polish magnates bribed by Berlin and Vienna. Inner-Polish Catholic opposition to an intervention on the Protestant Hungarian rebels' side added to the resentments. Thus, while Treaty of Żurawno ended the Polish-Ottoman war in 1676, Sobieski sided with the emperor instead, and the plan for a Prussian campaign was dropped.