In 1731, Palatinate-Zweibrücken passed to the Palatinate-Birkenfeld-Zweibrücken branch of the counts palatine, from where it came under the sway of Bavaria in 1799. It was occupied by France in 1793 and on 4 November 1797, Zweibrücken became a canton centre in department of Mont Tonnerre. At the Peace of Lunéville in 1801, the French annexation of Zweibrücken was confirmed; on its reunion with Germany in 1814 the greater part of the territory was given to Bavaria, the remainder to Oldenburg and Kingdom of Prussia. The town of Zweibrücken became part of the Palatine region of the Kingdom of Bavaria.