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
Due to the cultural rupture of the Turkish conquest, most western historians treat Constantine XI as the last meaningful claimant to the title Roman Emperor. From 1453, one of the titles used by the Ottoman Sultans was "Caesar of Rome" (Turkish: "Kayser-i Rum"), part of their titles until the Ottoman Empire ended in 1922. A Byzantine group of claimant Roman emperors existed in the Empire of Trebizond until its conquest by the Ottomans in 1461, though they had used a modified title since 1282.