 During the late 17th century resistance developed among the nobility and serfs against the Habsburg government, especially after the Bratislava Diet in 1687, which passed measures that limited professional interests and privileges of the nobility.General hatred resulted in Rákóczi's War of Independence, an uprising led by Francis II Rákóczi.In 1704, Rákoczi's rebel band ("Kuruc") entered Slovakia.