The new King of Bavaria was the most important of the princes belonging to the Confederation of the Rhine, and remained Napoleon's ally until the eve of the Battle of Leipzig, when by the Treaty of Ried (8 October 1813) he made the guarantee of the integrity of his kingdom the price of his joining the Allies. On 14 October, Bavaria made a formal declaration of war against Napoleonic France. The treaty was passionately backed by Crown Prince Ludwig and by Marshal von Wrede.
