Edmund II, usually known as Edmund Ironside, was King of England from 23 April to 30 November 1016. Edmund's reign was marred by a war he had inherited from his father Æthelred. He was given the name ‘Ironside’ because of his valour in resisting the Danish invasion led by Cnut the Great. Edmund was not expected to be King of England; however, by 1014 two elder brothers had died, making him the oldest male heir. Æthelred died on 23 April 1016, making Edmund King. In the summer of 1016 Edmund fought five battles against the Danes, ending in his defeat on 18 October at the Battle of Assandun, after which they agreed to divide the kingdom, Edmund taking Wessex and Cnut the rest of the country. Edmund died shortly afterwards on 30 November, leaving two sons called Edward and Edmund; however, Cnut became the king of all England.