Peace of Westphalia
The war caused great damage before it ended in the compromise Peace of Westphalia on 24 October 1648.