 On 29 February 1920, the parliament restored the Hungarian monarchy, ending the republic, and in March, annulled both the Pragmatic Sanction of 1723 and the Compromise of 1867.The parliament postponed electing a king until civil disorder had subsided.Former Austro-Hungarian admiral Miklós Horthy became regent, a position he would hold until 1944.