<prompt> Translate the following text to EnglishBaada ya kuathiriwa na uaminifu wa Kikatoliki wa Madame de Maintenon, mpenzi wake na baadaye mke wake wa siri, Louis alimaliza uhuru wa kidini kwa Waprotestanti kwa kufuta Amri ya Nantes.  <response>: 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. 