Kurfürstentum Bayern
The Electorate of Bavaria () was an independent hereditary electorate of the Holy Roman Empire from 1623 to 1806, when it was succeeded by the Kingdom of Bavaria.