Electorate of Bavaria
The Innviertel was ceded from the Electorate of Bavaria to Upper Austria in the Treaty of Teschen in 1779. During the Napoleonic Wars, Upper Austria was occupied by the French army on more than one occasion.