When Malcolm was killed in battle a short time later, Donalbain invaded, seized the Scottish kingdom, and displaced Malcolm's sons from the throne; on becoming king, Donalbain confirmed Magnus' gains.