The second son of Malcolm Canmore and Queen Margaret, Edmund and his uncle, King Donald III, deposed his elder half-brother, King Duncan II, after the death of their father in 1094 to share the throne, although it is not certain that Edmund was ever a king. Soon after Duncan II seized the throne but was killed in battle by Edmund and Donald, who resumed their joint rule. Three years later Edmund's younger brother, Edgar, marched north into Scotland with an army, supported by King William II of England. Edmund and Donald were deposed. Donald was imprisoned but Edmund was treated less harshly - he was banished and became a monk at Montacute Abbey in Somerset (England), where he lived out the remainder of his life.