The Prodistaian in 1618 resist to Hapsburg so they commit defenestration and push leaders out the window to their death, luckily they live. The letter of Majesty is signed and gives more religious freedom.
King Gustavus Adolphus of Sweden fought 3 wars and made his way to Germany and passed away. Gustav came with no real solid plan to Germany with no allies.
SURRENDER! We will kill you
In 1648 there was the signing of Westphalia. This ended the thirty year war and gave power to the leader to decide what religion was enforced in their country. This gave more power to absolute leaders and identified countries.