information:highlighting, quality:corruption, structural:summarization
Formation and background

Following Hungary's defeat against the Ottoman Empire in the Battle of Mohács of 1526, the Habsburg Empire became more involved in the Kingdom of Hungary, and subsequently assumed the Hungarian throne. However, as the Ottomans expanded further into Hungary, the Habsburgs came to control only a small north-western portion of the former kingdom's territory. Eventually, following the Treaty of Passarowitz in 1718, all former territories of the Hungarian kingdom were ceded from the Ottomans to the Habsburgs. In the revolutions of 1848, the Kingdom of Hungary called for greater self-government and later even independence from the Austrian Empire. The ensuing Hungarian Revolution of 1848 was crushed by the Austrian military with Russian military assistance, and the level of autonomy that the Hungarian state had enjoyed was replaced with absolutist rule from Vienna. This further increased Hungarian resentment of the Habsburg dominion.

In the 1860s, the Empire faced two severe defeats: its loss in the Second Italian War of Independence broke its dominion over a large part of Northern Italy (Lombardy, Veneto, Modena, Reggio, Tuscany, Parma and Piacenza) while defeat in the Austro-Prussian War of 1866 led to the dissolution of the German Confederation (of which the Habsburg emperor was the hereditary president) and the exclusion of Austria from German affairs. These twin defeats gave the Hungarians the opportunity to remove the shackles of absolutist rule.

Realizing the need to compromise with Hungary in order to retain its great power status, the central government in Vienna began negotiations with the Hungarian political leaders, led by Ferenc Deák. On 20 March 1867, the newly re-established Hungarian parliament at Pest started to negotiate the new laws to be accepted on 30 March. However, Hungarian leaders received word that the Emperor's formal coronation as King of Hungary on 8 June had to have taken place in order for the laws to be enacted within the lands of the Holy Crown of Hungary. On 28 July, Franz Joseph, in his new capacity as King of Hungary, approved and promulgated the new laws, which officially gave birth to the Dual Monarchy.