Original: The Thirty Years' War was ended with the Treaty of Münster, a part of the wider Peace of Westphalia.
Simplified: The war ended with the Treaty of Westphalia.