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.
King of the Romans
Originally all noblemen present could vote by unanimous acclamation, but later a franchise was granted to only the most eminent bishops and noblemen, and according to the Golden Bull of 1356 issued by Emperor Charles IV only the seven Prince-electors had the right to participate in a majority voting as determined by the 1338 Declaration of Rhense. They were the Prince-Archbishops of Mainz, Trier and Cologne as well as the King of Bohemia, the Count Palatine of the Rhine, the Saxon duke, and the Margrave of Brandenburg. After the Investiture Controversy, Charles intended to strengthen the legal status of the "Rex Romanorum" beyond Papal approbation. Consequently, among his successors only Sigismund and Frederick III were still crowned Emperors in Rome and in 1530 Charles V was the last king to receive the Imperial Crown at the hands of the Pope (in Bologna). The Golden Bull remained effective as constitutional law until the Empire's dissolution in 1806.