With religious liberalisations in the late 18th century believers of other faiths, including Judaism and Roman Catholicism, were allowed to live and work freely in the country. However, until 1860 it remained illegal for Lutherans to convert to another religion. The 19th century saw the arrival of various evangelical free churches, and, towards the end of the century, secularism, leading many to distance themselves from church rituals. Leaving the Church of Sweden became legal with the so-called dissenter law of 1860, but only under the provision of entering another Christian denomination. The right to stand outside any religious denomination was formally established in the law on freedom of religion in 1951.