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.
Emperor
From the time of Otto the Great onward, much of the former Carolingian kingdom of Eastern Francia became the Holy Roman Empire. The prince-electors elected one of their peers as King of the Romans and King of Italy before being crowned by the Pope. The Emperor could also pursue the election of his heir (usually a son) as King, who would then succeed him after his death. This junior King then bore the title of Roman King (King of the Romans). Although technically already ruling, after the election he would be crowned as emperor by the Pope. The last emperor to be crowned by the pope was Charles V; all emperors after him were technically "emperors-elect", but were universally referred to as "Emperor".