The Holy Roman Empire (Latin: Sacrum Imperium Romanum; German: Heiliges Römisches Reich), often unofficially referred to as the Holy Roman Empire of the German Nation, was a multi-ethnic complex of territories in Western and Central Europe that developed during the Early Middle Ages and continued until its dissolution in 1806 during the Napoleonic Wars. The largest territory of the empire after 962 was the Kingdom of Germany, though it also included the neighboring Kingdom of Bohemia and Kingdom of Italy, plus numerous other territories, and soon after the Kingdom of Burgundy was added. However, while by the 15th century the Empire was still in theory composed of three major blocks – Italy, Germany and Burgundy – in practice, the links between these blocks had become so unsubstantial that only the Kingdom of Germany remained, nearly all the Italian territories for instance having become in effect part of a narrowly-defined Habsburg dynastic patrimony, unconnected to the Empire. The external borders of the Empire did not change noticeably from the Peace of Westphalia – which acknowledged the exclusion of Switzerland and the Northern Netherlands, and the French protectorate over Alsace – to the dissolution of the Empire. By then, it largely contained only German-speaking territories, plus the Kingdom of Bohemia. At the conclusion of the Napoleonic Wars in 1815, most of the Holy Roman Empire was included in the German Confederation.
On 25 December 800, Pope Leo III crowned the Frankish king Charlemagne as Emperor, reviving the title in Western Europe, more than three centuries after the fall of the earlier ancient Western Roman Empire in 476. The title continued in the Carolingian family until 888 and from 896 to 899, after which it was contested by the rulers of Italy in a series of civil wars until the death of the last Italian claimant, Berengar I, in 924. The title was revived again in 962 when Otto I was crowned emperor, fashioning himself as the successor of Charlemagne and beginning a continuous existence of the empire for over eight centuries. Some historians refer to the coronation of Charlemagne as the origin of the empire, while others prefer the coronation of Otto I as its beginning. Scholars generally concur, however, in relating an evolution of the institutions and principles constituting the empire, describing a gradual assumption of the imperial title and role.
The exact term "Holy Roman Empire" was not used until the 13th century, but the concept of translatio imperii, the notion that he – the sovereign ruler – held supreme power inherited from the ancient emperors of Rome, was fundamental to the prestige of the emperor. The office of Holy Roman Emperor was traditionally elective, although frequently controlled by dynasties. The mostly German prince-electors, the highest-ranking noblemen of the empire, usually elected one of their peers as "King of the Romans", and he would later be crowned emperor by the Pope; the tradition of papal coronations was discontinued in the 16th century.
The empire never achieved the extent of political unification as was formed to the west in France, evolving instead into a decentralized, limited elective monarchy composed of hundreds of sub-units: kingdoms, principalities, duchies, counties, prince-bishoprics, Free Imperial Cities, and other domains. The power of the emperor was limited, and while the various princes, lords, bishops, and cities of the empire were vassals who owed the emperor their allegiance, they also possessed an extent of privileges that gave them de facto independence within their territories. Emperor Francis II dissolved the empire on 6 August 1806 following the creation of the Confederation of the Rhine by Emperor Napoleon I the month before.