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.
18th-century history of Germany
The Holy Roman Empire was formally dissolved on 6 August 1806 when the last Holy Roman Emperor Francis II (from 1804, Emperor Francis I of Austria) resigned. Francis II's family continued to be called Austrian emperors until 1918. In 1806, the Confederation of the Rhine was established under Napoleon's protection.