text: In January 1745, the Holy Roman Emperor Charles VII of Bavaria died, taking Bavaria out of the war and allowing Maria Theresa's husband Francis of Lorraine to be eventually elected Holy Roman Emperor. Now able to focus solely on Frederick's army, the Austrians, who were reinforced by the Saxons, crossed the mountains to invade Silesia. After allowing them across, Frederick pinned them down and decisively defeated them at the Battle of Hohenfriedberg on 4 June 1745. Frederick subsequently advanced into Bohemia and defeated a counterattack by the Austrians at the Battle of Soor. Frederick then turned toward Dresden when he learned the Saxons were preparing to march on Berlin. However, on 15 December 1745, Prussian forces under the command of Leopold of Anhalt-Dessau soundly defeated the Saxons at the Battle of Kesselsdorf. After linking up his army with Leopold's, Frederick occupied the Saxon capitol of Dresden, forcing the Saxon elector, Augustus III, to capitulate.
  Under the terms of the Treaty of Dresden, signed on 25 December 1745, Austria was forced to adhere to the terms of the Treaty of Breslau giving Silesia to Prussia. It was after the signing of the treaty that Frederick, then 33 years old, first became known as "the Great".
  Seven Years' War
  Though Frederick had withdrawn from the War of the Austrian Succession once Austria guaranteed his possession of Silesia, Austria remained embroiled in the war until the Treaty of Aix-la-Chapelle in 1748. Less than a year after the treaty was signed, Maria Theresa was once more seeking allies, particularly Russia and France, to eventually renew the war with Prussia to regain Silesia. During the ten years of peace that followed the signing of the Treaty of Dresden, Frederick prepared to defend his claim on Silesia by further fortifying the province, expanding his army, and reorganising his finances.