Mme de Maintenon would have preferred Philip V [King of Spain] to be Regent and the duc du Maine to be Lieutenant Général and consequently in control. Fearing a revival of the war, Louis named the duc d'Orléans joint President of a Regency Council, but one that would be packed with his enemies, reaching its decisions by a majority vote that was bound to go against him. The real power would be in the hands of the duc du Maine, who was also appointed guardian of the young sovereign. On 25 August 1715, a few days before his death, Louis XIV added a codicil to his will:  He sent for the Chancellor and wrote a last codicil to his will, in the presence of Mme de Maintenon. He was yielding, out of sheer fatigue, to his wife and confessor, probably with the reservation that his extraordinary action would be set aside after his death, like the will itself. Otherwise he would have been deliberately condemning his kingdom to perpetual strife, for the codicil appointed the duc du Maine commander of the civil and military Household, with Villeroy as his second-in-command. "By this arrangement they became the sole masters of the person and residence of the King; of Paris ... and all the internal and external guard; of the entire service ... so much so that the Regent did not have even the shadow of the slightest authority and found himself at their mercy." The evening of 25 August, Louis XIV had a private audience with the Duke of Orléans, his nephew and son-in-law, re-assuring him:  "You will find nothing in my will that should displease you. I commend the Dauphin to you, serve him as loyally as you have served me. Do your utmost to preserve his realm. If he were to die, you would be the master. I have made what I believed to be the wisest and fairest arrangements for the well-being of the realm, but, since one cannot anticipate everything, if there is something to change or to reform, you will do whatever you see fit..." Louis XIV died at Versailles on 1 September 1715, and was succeeded by his five-year-old great-grandson, Louis XV. On 2 September, the Duke of Orléans went to meet the "parlementaires" in the "Grand-Chambre du Parlement" in Paris in order to have Louis XIV's will annulled and his previous right to the regency restored.