query: Where was Saxony?
passage: Saxony
Saxony (German: Sachsen, Upper Sorbian: Sakska), officially the Free State of Saxony[1] (German: Freistaat Sachsen [ˈfʁaɪ̯ʃtaːt ˈzaksn̩], Upper Sorbian: Swobodny stat Sakska), is a landlocked federal state of Germany, bordering the federal states of Brandenburg, Saxony Anhalt, Thuringia, and Bavaria, as well as the countries of Poland (Lower Silesian and Lubusz Voivodeships) and the Czech Republic (Karlovy Vary, Liberec, and Ústí nad Labem Regions). Its capital is Dresden, and its largest city is Leipzig.
passage: Electorate of Saxony
When in 1806 Napoleon began a war with Prussia, Saxony at first allied itself with his long-time rival, but afterwards joined Napoleon and entered the Confederation of the Rhine. Elector Frederick Augustus III (1763–1827) was formally the last Elector of Saxony. With the dissolution of the Holy Roman Empire, he clung to office and became the first monarch of the short-lived Kingdom of Saxony, under the title of Frederick Augustus I of Saxony.