Ludwig's plan to reunite the eastern part of the Palatinate with Bavaria could not be realized. The Electoral Palatinate, a former dominion of the Wittelsbach, had disappeared under Napoleon when France first annexed the left bank of the Rhine, including about half of the Palatinate, and then gave what remained on the right bank including, Mannheim and Heidelberg, to Baden during the German Mediatization of 1803. In 1815, Baden's possession of Manheim and Heidelberg was confirmed and only the left bank territories were given back to Bavaria. Ludwig founded the city of Ludwigshafen there as a Bavarian rival to Mannheim.