they had been the lovers of Margaret and Blanche for three years. The Aunay brothers were soon executed, and Margaret and Blanche were imprisoned. After the scandal, the legitimacy of Joan became dubious, because her mother was accused of having had an extramarital affair around the year of Joan's birth. Philip IV died on 26 November 1314, and Joan's father became Louis X of France. Margaret technically became queen of France, but was not released and before long died in her prison in Château Gaillard. Louis stated that Joan was his legitimate daughter on his deathbed. He died on 5 June 1316. His second wife, Clementia of Hungary, was pregnant. According to an agreement of the most powerful French lords, which was completed on 16 July, if Clementia gave birth to a son, the son was to be crowned King of France, but if a daughter was born, she and Joan could only inherit the Kingdom of Navarre and the counties of Champagne and Brie (the three realms that Louis X had inherited from his mother, Joan I of Navarre). It was also agreed that Joan was to be sent to her mother's relatives in Burgundy, but her marriage could not be decided without the consent of the members of the French royal family. Orphanhood Clementia gave birth to a son, John the Posthumous, on 13 November 1316, but he died five days later. Joan's maternal uncle, Odo IV, Duke of Burgundy, who was in Paris, entered into negotiations with Philip IV's second son, Philip the Tall, to protect Joan's interests, but Philip did not respond to Odo's demands. Instead, he made arrangements for his own coronation, which took place in Reims on 9 January 1317. The , an assembly of the French lords strengthened Philip's position on 2 February, declaring that a woman could not inherit the French crown. The Navarrese noblemen sent a delegation to Paris to swear fidelity to Philip. Philip also refused to give Champagne and Brie to Joan. Joan's maternal grandmother, Agnes of France, Duchess of Burgundy, sent letters to the leading French lords, protesting against his coronation, but Philip V mounted the throne without real opposition. Letters were also written to the lords of Champagne in Joan's name, urging them to refrain from paying homage to Philip and to protect Joan's rights to Champagne. In another letter, Odo IV argued that the disinheritance of