Early modern period
In the early modern period, the Holy Roman Empire was a union of territories in Central Europe under a Holy Roman Emperor the first of which was Otto I. The last was Francis II, who abdicated and dissolved the Empire in 1806 during the Napoleonic Wars. Despite its name, for much of its history the Empire did not include Rome within its borders.
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.