 Following the Congress of Vienna the duchy of Savoy was returned to the King of Sardinia, and he was made Doge of Genoa in addition.The bishop of Albenga was recognized by the King of Sardinia as a Prince of the Holy Roman Empire, even though it had been abolished in 1804.Carmelo Cordiviola (1820–1827) had the unenviable task of restoring order and repairing the damage done by the French and their collaborator Bishop Dania.