30 Years War
Fought mostly between 1618 and 1648 over what is now modern day Germany. Involved all of the major European continental powers ... and the French. It was a religious war between Protestants and Catholics.
Ended in the defeat of the Spanish.
The French, even though they sort of switched sides, still couldn't get a win.