Franz Joseph I of Austria
Franz Joseph I or Francis Joseph I (Franz Joseph Karl; 18 August 1830 – 21 November 1916) was Emperor of Austria, King of Hungary, and monarch of many other states of the Austro-Hungarian Empire, from 2 December 1848 to his death. From 1 May 1850 to 24 August 1866 he was also President of the German Confederation. He was the longest-reigning Emperor of Austria and King of Hungary, as well as the third-longest-reigning monarch of any country in European history, after Louis XIV of France and Johann II of Liechtenstein.
History of Hungary
Defense against Ottoman expansion shifted to Habsburg Austria, and the remainder of the Hungarian kingdom came under the rule of the Habsburg emperors. 
The lost territory was recovered with the conclusion of the Great Turkish War, thus the whole of Hungary became part of the Habsburg Monarchy. Following the nationalist uprisings of 1848, the Austro-Hungarian Compromise of 1867 elevated Hungary's status by the creation of a joint monarchy with the Austrian Empire, ruled in personal union as Austria-Hungary by the Austrian emperors during 1867–1918. The territory grouped under the Habsburg "Archiregnum Hungaricum" was much larger than modern Hungary, following the Croatian–Hungarian Settlement of 1868 with settled the political status of the Kingdom of Croatia-Slavonia within the Lands of the Crown of Saint Stephen.