After the Danish conquest of England in 1016, Canute had Edward and his brother, Edmund, sent to the Swedish court of Olof Skötkonung. Edward was a baby at the time. Canute's agents apparently had orders to have the children murdered. But they were quickly taken to Hungary where neither Canut or his agents could reach them. He was brought up at the Hungarian court. Edward married Agatha, a relative of Emperor Henry II. 