The principality became part of the Confederation of the Rhine in 1806 after the dissolution of the Holy Roman Empire. In 1810 Napoleon granted Dalberg's Principality of Regensburg to the Kingdom of Bavaria and compensated him with Hanau and Fulda. Dalberg merged his remaining territories of Aschaffenburg, Frankfurt, Wetzlar, Hanau, and Fulda into the new Grand Duchy of Frankfurt, with the Principality of Aschaffenburg becoming a department of the new grand duchy. The city of Aschaffenburg remained the residence of Dalberg, however. The region was annexed by Bavaria in 1814.