This isn’t only ancient history. In Cornwall in 1857 a man got 21 months in prison for writing offensive words about Christianity on a gate, though he was pardoned that December. That same summer, men who admitted to having no religious belief were turned away as jurors in London.
From On Liberty by John Stuart Mill