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 Republic
Since the foundation of Rome, its rulers had been monarchs, elected for life by the patrician noblemen who made up the Roman Senate. The last Roman king was Lucius Tarquinius Superbus ("Tarquin the Proud"). In the traditional histories, Tarquin was expelled in 509 because his son, Sextus Tarquinius, had raped the noblewoman Lucretia, who afterwards took her own life. Lucretia's father; her husband, Lucius Tarquinius Collatinus; and Tarquin's own nephew, Lucius Junius Brutus, mustered support from the Senate and army, and forced Tarquin into exile in Etruria.