Francis II, Holy Roman Emperor
Francis II (; 12 February 1768 – 2 March 1835) was the last Holy Roman Emperor, ruling from 1792 until 6 August 1806, when he dissolved the Holy Roman Empire of the German Nation after the decisive defeat at the hands of the First French Empire led by Napoleon at the Battle of Austerlitz. In 1804, he had founded the Austrian Empire and became Francis I, the first Emperor of Austria, ruling from 1804 to 1835, so later he was named the one and only "Doppelkaiser" (double emperor) in history.
For the two years between 1804 and 1806, Francis used the title and style "by the Grace of God elected Roman Emperor, ever Augustus, hereditary Emperor of Austria" and he was called the "Emperor of both the Holy Roman Empire and Austria". He was also Apostolic King of Hungary and Bohemia as Francis I. He also served as the first president of the German Confederation following its establishment in 1815.
Roman emperor
This line of Emperors lasted until 1806 when Francis II dissolved the Empire during the Napoleonic Wars. Despite the existence of later potentates styling themselves "emperor", such as the Napoleons, the Habsburg Emperors of Austria, and the Hohenzollern heads of the German Reich, this marked the end of the Western Empire. Although there is a living heir, Karl von Habsburg, to the Habsburg dynasty, as well as a Pope and pretenders to the positions of the electors, and although all the medieval coronation regalia are still preserved in Austria, the legal abolition of all aristocratic prerogatives of the former electors and the imposition of republican constitutions in Germany and Austria render quite remote any potential for a revival of the Holy Roman Empire.