of the Archbishopric of Salzburg, a prince-bishopric of the Holy Roman Empire. As the Reformation movement gained steam, riots broke out among peasants in the areas in and around Salzburg. The city was occupied during the German Peasants' War, and the Archbishop had to flee to the safety of the fortress. It was besieged for three months in 1525. Eventually, tensions were quelled, and the city's independence led to an increase in wealth and prosperity, culminating in the late 16th to 18th centuries under the Prince Archbishops Wolf Dietrich von Raitenau, Markus Sittikus, and Paris Lodron. It was in the 17th century that Italian architects (and Austrians who had studied the Baroque style) rebuilt the city center as it is today along with many palaces. Modern era Religious conflict On 31 October 1731, the 214th anniversary of the 95 Theses, Archbishop Count Leopold Anton von Firmian signed an Edict of Expulsion, the Emigrationspatent, directing all Protestant citizens to recant their non-Catholic beliefs. 21,475 citizens refused to recant their beliefs and were expelled from Salzburg. Most of them accepted an offer by King Friedrich Wilhelm I of Prussia, travelling the length and breadth of Germany to their new homes in East Prussia. The rest settled in other Protestant states in Europe and the British colonies in America. Illuminism In 1772–1803, under archbishop Hieronymus Graf von Colloredo, Salzburg was a center of late Illuminism. Colloredo is known for being one of the main employers of Mozart. He often had arguments with Mozart and he dismissed him by saying, "Soll er doch gehen, ich brauche ihn nicht!" (may he leave; I don't need him!). Mozart would leave Salzburg for Vienna in 1781 with his family, though his father Leopold stayed back as he had a close relationship with Colloredo. Electorate of Salzburg In 1803, the archbishopric was secularised by Emperor Napoleon; he transferred the territory to Ferdinando III of Tuscany, former Grand Duke of Tuscany, as the Electorate of Salzburg. Austrian annexation of Salzburg In 1805, Salzburg was annexed to the Austrian Empire, along with the Berchtesgaden Provostry. Salzburg under Bavarian rule In 1809, the territory of Salzburg was transferred to the Kingdom of Bavaria after Austria's defeat at Wagram. Division of Salzburg and annexation by Austria and Bavaria After the Congress of Vienna with the Treaty of Munich (1816), Salzburg was definitively returned to Austria, but without Rupertigau and Berchtesgaden, which remained