Long an opponent of Habsburg domination of Hungary, he led the 1848 insurrection and was appointed governor of the country during the brief period of independence which followed. In 1849 he began a lifelong period of exile when the uprising was crushed, although he continued to strive for Hungarian independence.