The battle of Val-es-Dunes was the start of William's rise to power. As the king had stepped in it was more his victory than William's. But William's nobles now began to see him as a leader. He could now think about taking a wife. Shortly before 1049 William decided to marry Matilda of Flanders. She was the daughter of Baldwin V of Flanders and Adela of France, who was the daughter of King Robert II of France. Before it could take place Pope Leo IX refused to allow the marriage. He did not give a reason but the two were cousins. Some time between 1050 and 1052 the two married anyway. But it wasn't until 1059 that another pope, Nicholas II, lifted the ban on their marriage.