Sophia Magdalena of Denmark (Danish: Sophie Magdalene; Swedish: Sofia Magdalena; 3 July 1746 – 21 August 1813) was Queen of Sweden from 1771 to 1792 as the wife of King Gustav III. Born into the House of Oldenburg, the royal family of Denmark-Norway, Sophia Magdalena was the first daughter of King Frederick V of Denmark and Norway and his first consort, Princess Louise of Great Britain. Already at the age of five, she was betrothed to Gustav, the heir apparent to the throne of Sweden, as part of an attempt to improve the traditionally tense relationship between the two Scandinavian realms.
https://en.wikipedia.org/wiki/Sophia_Magdalena_of_Denmark