The correct option is D Treaty of Westphalia
The war ended with the Treaty of Westphalia in 1648, which recognised Protestantism as another branch of Christianity. Its followers had the freedom to practice their faith privately. King Philip II recognised the Netherlands as an independent country.