Peace of Prague
In 1631, Wilhelm lost Baden to the Swedish General Gustav Horn and regained control only after the Peace of Prague (1635) and the Peace of Westphalia on 24 October 1648. During this fighting, Wilhelm was taken prisoner, but not recognized and released as an ordinary soldier.