Holy Roman Empire
The empire was dissolved on 6 August 1806, when the last Holy Roman Emperor Francis II (from 1804, Emperor Francis I of Austria) abdicated, following a military defeat by the French under Napoleon at Austerlitz (see Treaty of Pressburg). Napoleon reorganized much of the Empire into the Confederation of the Rhine, a French satellite. Francis' House of Habsburg-Lorraine survived the demise of the empire, continuing to reign as Emperors of Austria and Kings of Hungary until the Habsburg empire's final dissolution in 1918 in the aftermath of World War I.
Kingdom of Arles
In 1365, Charles was the last emperor to be crowned King of Arles. In 1378, Charles appointed the Dauphin of France (later King Charles VI of France) as permanent Imperial vicar to administer nominally on behalf of the Empire what remained of Arelat, and from then on Arelat in effect ceased to exist. However, the title "King of Arles" remained one of the Holy Roman Emperor's subsidiary titles until the dissolution of the Empire in 1806, and the office of the Archbishop of Trier continued to act as an archchancellor and prince-elector for the King of the Romans (the designated future Holy Roman Emperor), a status that was confirmed by the Golden Bull of 1356.