During the Thirty Years’ War, Mirabell Palace and its gardens was incorporated into the new strong fortification on the banks of the river. From 1721 to 1727, the palace was renovated into a magnificent Baroque palace complex with an inner courtyard. However, in 1818, a devastating city fire greatly damaged the building and the reconstruction to its original splendor was considered too expensive for the emperor. Therefore, a district engineer was commissioned for the reconstruction and, as a result, the building lost much of its former unique Baroque appearance. Fortunately, the west side courtyard façade and the garden façade in the west were largely preserved. From 1810 to 1816 under Bavarian rule, Mirabell Palace was the residence of the Bavarian crown prince and in 1866, the palace became the property of the city of Salzburg.