The Electorate of Bavaria was a quasi-independent hereditary electorate of the Holy Roman Empire from 1623 to 1806, when it was succeeded by the Kingdom of Bavaria.
Maximilian II Emanuel
Charles Theodore
Count Montgelas
Gallia Protects Bavaria by Marianne Kürzinger, 1805. An allegory of the military alliance between Bavaria and Napoleonic France