 The Peace of Prague (1635) confirmed his rule over the city, but three years later, Swedish troops expelled the Habsburg army and restored August as administrator as of 19 October 1638.August finally took full control of Magdeburg on 31 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.