What agreement caused Bavaria to leave its alliance with the Holy Roman emperor in 1647?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

In 1647, the elector Maximilian I of Bavaria abandoned his alliance with the Holy Roman emperor Ferdinand III by signing the Treaty of Ulm on March 14, 1647.1

This agreement was reached after French forces under Turenne and Swedish troops under Carl Gustav Wrangel successfully joined together and threatened Augsburg and Munich, forcing the Bavarian leader to negotiate a cease-fire with his enemies.12