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.
List of rulers of Württemberg
The Holy Roman Empire came to an end in 1806. The Elector of Württemberg, allied to Napoleon I, anticipated its dissolution by becoming the ruler of an independent Kingdom of Württemberg in 1806.
Because of a lack of male heirs under Salic law, on the death of Wilhelm II in 1921 the royal house had to reach back to the descendants of Friedrich II Eugen (ruled 1795–97). The line of the Duke of Urach was excluded because of a morganatic marriage back in 1800 by its forebear Duke William, and so the succession devolved to the younger branch of Altshausen.