 On hearing the news of Magnus's death, Harald quickly gathered the local leaders in Norway and declared himself king of Norway as well as of Denmark.Although Magnus had appointed Sweyn his successor as king of Denmark, Harald immediately announced his plans to gather an army and oust his former ally from the country.In response, the army and the chieftains, headed by Einar Thambarskelfir, opposed any plans of invading Denmark.