The Habsburg monarchy was reconstituted in 1867 as Austria-Hungary, with Croatia-Slavonia placed under the rule of Hungary and with Dalmatia, Istria, and the Military Frontier remaining under Vienna. Under an 1868 agreement between Croatia and Hungary, known as the Nagodba, Croatian statehood was formally recognized, but Croatia was in fact stripped of all real control over its affairs.