 However, in 1239, the conflict between her father and husband erupted into open warfare, when Skule had himself proclaimed king in Nidaros.The rebellion ended in 1240 when Skule was put to death.According to the Haakon Saga (Codex Frisianus), Margaret burst into tears when she was informed of her father's rebellion, and mourned his death greatly.