Maximilian I Joseph was Duke of Zweibrücken from 1795 to 1799, prince-elector of Bavaria from 1799 to 1806, then King of Bavaria from 1806 to 1825. He was a member of the House of Palatinate-Birkenfeld-Zweibrücken, a branch of the House of Wittelsbach.