Answer
Magnus and Haakon Magnusson were cousins, sharing a grandparent in King Magnus III of Norway. Magnus, the elder, was the son of King Erik II of Norway, while Haakon was the son of Magnus III's daughter, Ingeborg. Their close familial relationship played a significant role in their lives, as Magnus became king of Norway in 1319 and appointed Haakon as his co-ruler.