Pope John VIII crowns Charles the Fat, the King of Italy: Holy Roman Emperor

The Holy Roman Emperor, originally and officially the Emperor of the Romans (Latin: Imperator Romanorum, German: Kaiser der Rmer) during the Middle Ages, and also known as the German-Roman Emperor since the early modern period (Latin: Imperator Germanorum, German: Rmisch-deutscher Kaiser, lit.'Roman-German emperor'), was the ruler and head of state of the Holy Roman Empire. The empire was considered by the Roman Catholic Church to be the only successor of the Roman Empire during the Middle Ages and the early modern period. The title was held in conjunction with the title of king of Italy (Rex Italiae) from the 8th to the 16th century, and, almost without interruption, with the title of king of Germany (Rex Teutonicorum, lit. King of the Teutons) throughout the 12th to 18th centuries.In theory and diplomacy, the emperors were considered primus inter pares, regarded as first among equals among other Roman Catholic monarchs across Europe.From an autocracy in Carolingian times (AD 800924) the title by the 13th century evolved into an elective monarchy, with the emperor chosen by the prince-electors.

Various royal houses of Europe, at different times, became de facto hereditary holders of the title, notably the Ottonians (9621024) and the Salians (10271125). Following the late medieval crisis of government, the Habsburgs kept possession of the title without interruption from 1440 to 1740. The final emperors were from the House of Habsburg-Lorraine, from 1765 to 1806. The Holy Roman Empire was dissolved by Francis II, after a devastating defeat by Napoleon at the Battle of Austerlitz.

The emperor was widely perceived to rule by divine right, though he often contradicted or rivaled the pope, most notably during the Investiture controversy. The Holy Roman Empire never had an empress regnant, though women such as Theophanu and Maria Theresa exerted strong influence. Throughout its history, the position was viewed as a defender of the Roman Catholic faith. Until Maximilian I in 1508, the emperor-elect (Imperator electus) was required to be crowned by the pope before assuming the imperial title. Charles V was the last to be crowned by the pope in 1530. Even after the Reformation, the elected emperor was always a Roman Catholic. There were short periods in history when the electoral college was dominated by Protestants, and the electors usually voted in their own political interest.

Pope John VIII (Latin: Ioannes VIII; died 16 December 882) was the bishop of Rome and ruler of the Papal States from 14 December 872 to his death. He is often considered one of the ablest popes of the 9th century.John devoted much of his papacy attempting to halt and reverse the Muslim gains in southern Italy and their march northwards. When his efforts to obtain assistance from either the Franks or the Byzantines failed, John strengthened the defenses of Rome. He supported Methodius of Thessalonica in his mission to the Slavs, defended him against the Carolingian rulers and Bavarian clergy, and authorized the translation of the Bible into Slavonic. John also extended diplomatic recognition to the Duchy of Croatia and resolved the Photian schism. John's pontificate ended with his assassination, and the papacy became significantly weaker in the aftermath.