Even during the long personal union between the Kingdom of Hungary and other Habsburg ruled areas, the Habsburg monarchs had to be crowned as King of Hungary in order to promulgate laws there or exercise royal prerogatives in the territory of the Kingdom of Hungary. Since the Golden Bull of 1222, all Hungarian monarchs were obliged to take a coronation oath during the coronation ceremony, where the new monarch had to agree to uphold the constitutional arrangement of the country, to preserve the liberties of its subjects and the territorial integrity of the realm.