Influenced in later life by the Catholic piety of Madame de Maintenon, his mistress and subsequently secret wife, Louis put an end to religious freedom for Protestants by revoking the Edict of Nantes.