In 1002 Ethelred King of England married Emma, sister of Duke Richard II of Normandy. The alliance formed by this marriage had far reaching effects. When Canute came to the throne of England in 1016, he took Emma of Normandy as his wife. Her two sons by her former marriage fled to Normandy for their own safety. Edward, the older son, stayed in Normandy for many years at the court of the dukes. The last duke who protected him there was his cousin William. Edward became King of England in 1042. in 1052 Edward made William his heir. In 1065 Harold Godwinson was in Normandy. While he was there he promised Duke William he would support him as successor to the English throne. On 5 January 1066 Edward the king died. But Harold did not respect his oaths. The next day, the day of the funeral, Harold Godwinson was crowned King of England. The story was that on his deathbed, the king had changed his mind, and promised Harold the throne. Harold was not royalty himself and had no legal claim on the throne. For weeks William must have known Edward was dying. But the news of the king's death and Harold's taking the throne must have been a surprise to others.