 Olaf was dethroned by the Danish king Cnut the Great in 1028, and he went into exile with his family and court, including the young Magnus.They travelled over the mountains and through Eidskog during the winter, entered Värmland, and were given shelter by a chieftain called Sigtrygg in Närke.After a few months, they departed Närke, and by March went eastwards towards Sigtuna, where the Swedish king Anund Jacob had left them a ship.