The empire was reorganised into two legally distinct states governed from Vienna and Budapest. Each possessed its own parliament and domestic administration, but they shared a single monarch who ruled as Emperor of Austria and King of Hungary.