Alternative History
Königreich Bayern
Kingdom of Bavaria
State of the Confederation of the Rhine
(1806–1813)
State of the German Confederation
(1815–1866)
State of the German Empire
(1871–1990)
Electoral Standard of Bavaria (1623-1806)
 
Flag of Baden
1806–1990 Flag of Bavaria (lozengy)
Flag of Bavaria (striped) Coat of Arms of the Kingdom of Bavaria
Flag Coat of arms
Anthem
Königsstrophe
CV Map-DR-Bavaria 1918-1934
The Kingdom of Bavaria (red) within the German Empire, after World War I
Capital Munich
Official language German
Religion Evangelical
Roman Catholic
Government Constitutional monarchy
King
 - 1806–1825 Maximilian I Joseph
 - 1955–1990 Albrecht I
Minister-President
 - 1806–1817 Maximilian von Montgelas
 - 1988–1990 Max Streibl
Legislature Landtag
 - Upper house Herrenhaus
 - Lower house Abgeordnetenhaus
Historical era Napoleonic Wars, New Imperialism, World War I, Interwar period, World War II, Cold War
 - Established 1 January 1806
 - Treaty of Pressburg 26 December 1805
 - Unification of Germany 18 January 1871
 - Gleichschaltung 27 February 1933
 - Berg declaration 10 November 1990

The Kingdom of Bavaria (German: Königreich Bayern) was a German state that existed from 1806 to 1990. The Bavarian Elector Maximilian IV Joseph of the House of Wittelsbach became the first King of Bavaria in 1806 as Maximilian I Joseph. The monarchy would remain held by the Wittelsbachs until the kingdom's dissolution in 1990. Most of Bavaria's modern-day borders were established after 1814 with the Treaty of Paris, in which Bavaria ceded Tyrol and Vorarlberg to the Austrian Empire while receiving Aschaffenburg and parts of Hesse-Darmstadt. As a state within the German Empire, the kingdom was second in size only to the Kingdom of Prussia. Since the unification of Germany in 1871, Bavaria has remained part of Germany.