After the sack, the archbishopric of Magdeburg went to Archduke Leopold Wilhelm of Austria, youngest son of emperor Ferdinand II, as the new Catholic Administrator. The Peace of Prague (1635) confirmed his rule over the city, but three years later, Swedish troops expelled the Habsburg army and restored Augustus of Wettin, (first elected in 1628) as Administrator as of October 1638. Augustus finally took full control of Magdeburg in December 1642 after a neutrality treaty was concluded with the Swedish general Lennart Torstenson. He was then able to begin the reconstruction of the city.