Roman emperor
The Western Roman Empire collapsed in the late 5th century. Romulus Augustulus is often considered to be the last emperor of the West after his forced abdication in 476, although Julius Nepos maintained a claim recognized by the Eastern Empire to the title until his death in 480. Following Nepos' death, the Eastern Emperor Zeno abolished the division of the position and proclaimed himself as the sole Emperor of a reunited Roman Empire. The Eastern imperial lineage continued to rule from Constantinople ("New Rome"); they continued to style themselves as Emperor of the Romans (later βασιλεύς Ῥωμαίων in Greek), but are often referred to in modern scholarship as Byzantine emperors. Constantine XI Palaiologos was the last Roman emperor in Constantinople, dying in the Fall of Constantinople to the Ottomans in 1453.
Roman emperor
This line of Roman emperors was actually generally Germanic rather than Roman, but maintained their Roman-ness as a matter of principle. These emperors used a variety of titles (most frequently ""Imperator Augustus"") before finally settling on "Imperator Romanus Electus" ("Elected Roman Emperor"). Historians customarily assign them the title "Holy Roman Emperor", which has a basis in actual historical usage, and treat their "Holy Roman Empire" as a separate institution. To Latin Catholics of the time, the Pope was the temporal authority as well as spiritual authority, and as Bishop of Rome he was recognized as having the power to anoint or crown a new Roman emperor. The last man to be crowned by the pope (although in Bologna, not Rome) was Charles V. All his successors bore only a title of "Elected Roman Emperor".