The Thirty Years ' War was ended with the treaties of Osnabrück and Münster , part of the wider Peace of Westphalia .
The war ended with the Treaty of Westphalia .