Many modern countries state they have no "official religion". I assume this was not always the case. How and when, say, European countries lost their "official religion"?

by Ilitarist

I think it's obvious how it happened in Russia or Germany, but what about countries like Spain, France or Great Britain?

zedvaint

How is that "obvious" for Germany?