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.
Kingdom of Saxony
Before 1806, Saxony was part of the Holy Roman Empire, a thousand-year-old entity that had become highly decentralised over the centuries. The rulers of the Electorate of Saxony of the House of Wettin had held the title of elector for several centuries. When the Holy Roman Empire was dissolved in August 1806 following the defeat of Emperor Francis II by Napoleon at the Battle of Austerlitz, the electorate was raised to the status of an independent kingdom with the support of the First French Empire, then the dominant power in Central Europe. The last elector of Saxony became King Frederick Augustus I.