 The town suffered severely during the German Peasants' War and also during the Thirty Years' War.From 1657 to 1738 Merseburg was the residence of the Dukes of Saxe-Merseburg, after which it fell to the Electorate of Saxony.In 1815 following the Napoleonic Wars, the town became part of the Prussian Province of Saxony.