Holy Roman Empire
The empire was dissolved on 6 August 1806, when the last Holy Roman Emperor Francis II (from 1804, Emperor Francis I of Austria) abdicated, following a military defeat by the French under Napoleon at Austerlitz (see Treaty of Pressburg). Napoleon reorganized much of the Empire into the Confederation of the Rhine, a French satellite. Francis' House of Habsburg-Lorraine survived the demise of the empire, continuing to reign as Emperors of Austria and Kings of Hungary until the Habsburg empire's final dissolution in 1918 in the aftermath of World War I.
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.