linguistic:paraphrasing
Death

In 1412, Margaret tried to recover Schleswig, and thus entered a war with Holstein. Before that she had managed the recovery of Finland and Gotland. While winning the war, Margaret died suddenly on board her ship in Flensburg Harbor.

In October 1412, she set sail from Seeland in her ship. She attended several debates, which reportedly had brought matters to a state of promising forwardness. On retiring to her vessel though, with the intention of leaving the port, "she was seized with sudden and violent illness." Margaret apparently foresaw the end of her life, as she ordered thirty seven marks to be paid to the nearby monastery of Campen for a perpetual mass for her soul. Beyond this, there is no discussion in the historical record regarding her demise. She died on the night of 28 October 1412, the vigil of St. Simon and St. Jude. Possible scenarios that have been suggested include plague, shock from the death of Abraham Brodersson (whom 18th century authors have alleged was the father of a daughter Margareta had, while 19th century authors have blamed the story on a mistranslation), or poisoning by Eric.

Her sarcophagus, made by the Lübeck sculptor Johannes Junge in 1423, is situated behind the high altar in the Roskilde Cathedral, near Copenhagen. She had left property to the cathedral on the condition that Masses for her soul would be said regularly in the future. This was discontinued in 1536 during the Protestant Reformation, though a special bell is still rung twice daily in commemoration.