Rákóczi's War for Independence (1703–1711) was the first significant freedom fight in Hungary against absolutist Habsburg rule. It was fought by a group of noblemen, wealthy and high-ranking progressives who wanted to put an end to the inequality of power relations, led by Francis II Rákóczi (II. Rákóczi Ferenc in Hungarian). Its main aims were to protect the rights of the different social orders, and to ensure the economic and social development of the country. Due to the adverse balance of forces, the political situation in Europe and internal conflicts the freedom fight was eventually suppressed, but it succeeded in keeping Hungary from becoming an integral part of the Habsburg Empire, and its constitution was kept, even though it was only a formality.