Sophia of Denmark (Danish: Sofie Eriksdatter and Swedish: Sofia Eriksdotter; 1241–1286) was Queen of Sweden as the consort of King Valdemar.
[1] In Erikskrönikan it is said that when she was informed about the arranged marriage, she left the room, went into her chamber and asked the Virgin Mary: "Give me happiness with him and him with me.
"[2] According to Erikskrönikan, the wedding between Sophia and Valdemar took place in 1260 at Ymninge (likely Öninge in Ödeshög), and was described as a grand event with tournaments, dance, games and poetry.
[1] At the time of her wedding, her uncle Christopher I was succeeded by Eric V of Denmark under the regency of Margaret Sambiria, who refused to acknowledge Sophia's right to the inheritance after her father until 1263.
[1] In 1266, her spouse finally became King de facto after the death of his father Birger Jarl, and her mother-in-law left Sweden.
In the conflict between King Valdemar and his brothers, Queen Sophia took the king's side and reportedly also made the conflict worse by insulting her brothers-in-law: she famously called Duke Magnus Birgersson "ket-laböther" ('Magnus the Tinker') and Duke Eric Birgersson "Erik alls intet" ('Really-nothing-Eric').
[2] The scandal – not only adultery, but also incest, as the church regarded a sister-in-law as a true sister – reportedly led to Valdemar having to make a pilgrimage to Rome to ask for the Pope's absolution.
"[2] In 1274, open civil war broke out in Sweden when the king's brothers, Dukes Magnus and Eric, challenged him for the throne.
[1] In 1278, Valdemar finally accepted to abdicate permanently in favor of his brother Magnus and took the title quondam rex (former king), and was given some lands in Västergötland and Östergötland.