).Although the Edict of Nantes (1598) permitted the existence of Protestant churches in the realm (characterized as "a state within a state"), the next eighty years saw the rights of the Huguenots slowly stripped away, until Louis XIV finally revoked the edict in 1685, producing a massive emigration of Huguenots to other countries.Religious practices which veered too close to Protestantism (like Jansenism) or to the mystical (like Quietism) were also severely suppressed, as too libertinage or overt atheism.