Dresden was the capital of the Electorate of Saxony: Saxony was dominantly Protestant, but the elector, Augustus the Strong, had converted to Catholicism in order to become eligible as king of Poland.