Electorate of Cologne
From 1597 to 1794, Bonn was the capital of the Electorate of Cologne and residence of the Archbishops and Prince-electors of Cologne, most of them belonging to the Bavarian branch of the House of Wittelsbach (continuously from 1583 to 1761).