For six years Louis reformed the finances of his state and built formidable armed forces. France fought a series of wars from 1667 onward and gained some territory on its northern and eastern borders. Maria Theresa died in 1683 and the next year he secretly married the devoutly Catholic Françoise d'Aubigné, Marquise de Maintenon. Louis XIV began to persecute Protestants, undoing the religious tolerance established by his grandfather Henry IV, culminating in his revocation of the Edict of Nantes in 1685.