Why was Austria-Hungary created in 1867?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

The creation of the Dual Monarchy of Austria-Hungary in 1867, formalized by the Ausgleich (Compromise), was primarily driven by the need to stabilize the Habsburg Empire following its defeat in the Seven Weeks’ War against Prussia in 1866.12

This military failure, which excluded Austria from German affairs, made it imperative for Emperor Franz Joseph to consolidate his remaining territories. For years, the monarchy had struggled with internal unrest and the demand for constitutional reform. By 1867, it became clear that a settlement with the restive Hungarian population was essential to maintain the empire's integrity and dynastic prestige.23451

Through the Compromise, Hungary gained full internal autonomy and a responsible ministry in exchange for remaining part of a single state for foreign affairs and military purposes. This agreement allowed the Habsburgs to preserve their status as a great power while addressing the long-standing Hungarian desire for equal status within the monarchy.126