The country tried to find the way towards consolidation: in 1867, the two most important Habsburg territories, Austria and Hungary signed a treaty, and they established the Austro-Hungarian Monarchy. The new situation was feasible for both sides: the agreement brought massive economic growth.