Maria-Theresa's accession to the Habsburg lands was challenged by the territorial aspirations of the increasingly powerful Hohenzollern dynasty. The Prussian king, Frederick II, joined by the dukes of Bavaria and Saxony, invaded the Bohemian Kingdom in 1740 in the First Silesian War. The Duke of Bavaria, Charles Albert, was proclaimed king by the Czech nobility. Although Maria-Theresa regained most of the Bohemian Kingdom and was crowned queen in Prague in 1743, all of the highly industrialized territory of Silesia except for Tesin, Opava, and Krnov was ceded to Prussia in the 1742 Treaty of Breslau.