Hungarian Defence Forces
In April 1867, the Austro-Hungarian Empire was established. Franz Josef, the head of the ancient Habsburg dynasty, was recognized as both Emperor of Austria and King of Hungary. Nevertheless, the issue of what form the Hungarian military would take remained a matter of serious contention between Hungarian patriots and Austrian leaders. As the impasse threatened the political union, Emperor Franz Josef ordered a council of generals in November of the same year. Ultimately, the leaders resolved on the following solution: in addition to the joint (k.u.k.) army, Hungary would have its own defence force, whose members would swear their oath to the King of Hungary (who was also Emperor of Austria) and the national constitution, use the Hungarian language of command, and display their own flags and insignia. (Austria would also form its own parallel national defence force, the "Landwehr".) As a result of these negotiations, on 5 December 1868, the Royal Hungarian Landwehr ("Magyar Kiralyi Honvédség", or Defence Force) was established.
Austrian Empire
In 1804, the Holy Roman Emperor Francis II, who was also ruler of the lands of the Habsburg Monarchy, founded the Empire of Austria, in which all his lands were included. In doing so he created a formal overarching structure for the Habsburg Monarchy, which had functioned as a composite monarchy for about three hundred years. He did so because he foresaw either the end of the Holy Roman Empire, or the eventual accession as Holy Roman Emperor of Napoleon, who had earlier that year adopted the title of an Emperor of the French; Francis II eventually abandoned the title of German-Roman Emperor later in 1806. To safeguard his dynasty's imperial status he adopted the additional hereditary title of Emperor of Austria. Apart from now being included in a new "Kaiserthum", the workings of the overarching structure and the status of its component lands at first stayed much the same as they had been under the composite monarchy that existed before 1804.