The Austro-Hungarian Compromise of 1867 established the Dual Monarchy of Austria-Hungary, granting Hungary substantial autonomy while maintaining a shared ruler and common foreign, military, and financial policies with Austria. This political realignment sought to stabilize the empire by addressing Hungarian demands for greater self-governance following internal pressures and military defeats.