Due to external and internal problems, reforms seemed inevitable to secure the integrity of the Habsburg Empire. Major Austrian military defeats (such as the 1866 Battle of Königgrätz) forced Austrian emperor Franz Joseph to concede internal reforms. To appease Hungarian separatism, the emperor made a deal with Hungary (the Austro-Hungarian Compromise of 1867, negotiated by Ferenc Deák) by which the dual monarchy of Austria–Hungary came into existence. The two realms were governed separately by two parliaments from two capitals, with a common monarch and common external and military policies. Economically, the empire was a customs union. The first prime minister of Hungary after the Compromise was Count Gyula Andrássy. The old Hungarian Constitution was restored, and Franz Joseph was crowned as King of Hungary. Romanian intellectuals issued the Blaj Pronouncement in protest of the Compromise.