Why was the Thirty Years' War fought?

Thirty Years' War , a series of European conflicts from 1618 to 1648, fought primarily in Germany. The war started in Bohemia with a Protestant revolt against the Holy Roman Empire and eventually involved almost all of the countries of Europe. By its final years, religious issues had been submerged and it had become a struggle for power between Austria and Spain on one side and France on the other.