Who was the Thirty Years' War between?

It began as a religious war between Catholic and Protestant Christians, but it became a national war with several European nations involved. France, a Catholic country, eventually sided with the Protestants.