As a reaction to the Revolutions of 1848, Ferdinand V signed the so-called April laws, which included the abolition of serfdom, at the Primate's Palace.Kováč et al., "Kronika Slovenska 1", p. 444 The city chose the revolutionary Hungarian side, but was captured by the Austrians in December 1848.