In the revolutions of 1848 in the Austrian Empire, the Croatian Ban Jelačić cooperated with the Austrians in quenching the Hungarian Revolution of 1848 by leading a military campaign into Hungary, successful until the Battle of Pákozd. Despite this contribution, Croatia was later subject to Baron Alexander von Bach's absolutism as well as the Hungarian hegemony under ban Levin Rauch when the Empire was transformed into a dual monarchy of Austria-Hungary in 1867.