 Though formally reduced to near-serfdom, Cumans were able to hold on to some of their tax and judicial privileges.Nevertheless, their social decline led them to join other Kuruc rebels during Rákóczi's War of Independence (1703–1711).This new uprising was finally ended by the Treaty of Szatmár, which stipulated that the suppression of all autonomy for the Cumans and Jazyges; the decision was then upheld by the Hungarian Diet.