At the age of fourteen Sophie, on 20 July 1572, married Frederick II of Denmark in Copenhagen; he was thirty-eight. They were first half-cousins, through their grandfather, Frederick I, King of Denmark and Norway. They met at Nykøbing Castle, when it had been arranged for the king to meet with Margaret of Pomerania. She was brought to Denmark by Sophie's parents, who decided to also bring their own daughter.. Sophie found favour with the king, who betrothed himself to her, and married her six months later. King Frederick had been in love with the noblewoman Anne Corfitzdatter Hardenberg for many years, but was unable to marry her due to her being a noblewoman, not a princess, the opposition of the Danish Privy Council as well as eventually Anne herself. Despite the age difference between Sophie and Frederick, the marriage was described as harmonious. Queen Sophie was a loving mother, nursing her children personally during their illnesses. When Frederick was sick with malaria in 1575, she personally nursed him and wrote many worried letters to her father about his progress. King Frederick was well-known for being fond of drinking and hunting, but he was a loving spouse to Sophie, writing off her with great fondness in his personal diary and there is no evidence of extramarital affairs on the part of either spouse. Their marriage is described as having been harmonious. All of their children were sent to live with her parents in Mecklenburg for the first years of their lives, with the possible exception of the last son, Hans, as it was the belief at the time that the parents would indulge their children too much. She showed a keen interest in science and visited the astronomer Tycho Brahe. She was also interested in the old songs of folklore. She proved a diligent matchmaker. Her daughter, Anne of Denmark, married James VI of Scotland and become queen consort in 1589. She arranged the marriage against the will of the Council. When James VI came to Denmark she gave him a present of 10,000 dalers.
Regency
Queen Sophie had no political power during the lifetime of her spouse. When her underage son Christian IV became king in 1588, she was given no place in the regency council in Denmark itself. From 1590, however, she acted as regent for the duchies of Schleswig-Holstein for her son. She organised a grand funeral for her spouse, arranged for the dowries for her daughters and for her own allowance, all independently and against the will of the council. She engaged in a power struggle with the regents of Denmark and with the Council of State, which had Christian declared of age in 1593. She wished the duchies to be divided between her younger sons, which caused a conflict. Sophie only gave up her position the following year, 1594. As such, she came into conflict with the government, which exiled her to the Palace of Nykøbing Slot on the island of Falster. She spent her time there in the study of chemistry, astronomy and other sciences. She also renovated Nykøbing Slot.
Later life
The Dowager Queen Sophie managed her estates in Lolland-Falster so well that her son could borrow money from her on several occasions for his wars. She also engaged in large-scale trade and in money-lending. She often visited Mecklenburg, and attended her daughter's wedding in Dresden in 1602. In 1603 she became involved in an inheritance dispute with her uncle, which remained unsolved at his death in 1610. In 1608, she managed to soften the punishment of Rigborg Brockenhuus, and in 1628, she was one of the influential people who prevented her son from having her grandson's lover, Anne Lykke, accused of witchcraft. Sophie died in Nykøbing Falster at the age of seventy-four as the richest woman in Northern Europe.