On 25 July 1819 in Karlsruhe, Sophie married her half-grand-uncle Leopold I of Baden.
They became the paternal grandparents of the Swedish Queen consort Victoria of Baden.

Sophia and Leopold I had the following children:
Alexandrine (1820–1904), married Duke Ernest II of Saxe-Coburg and Gotha (1818–93), childless marriage due to which Ernest's younger brother Albert's British issue succeeded in that duchy.

Ludwig (1822–1822)
Louis II (1824–58), reigned as Grand Duke 1852–58, deemed mentally unfit to rule.

Frederick I (1826–1907), Grand Duke 1858-1907, Regent 1852–58, father of Queen Victoria of Sweden.

William (1829–97), Prussian General, married Marie of Leuchtenberg, became ancestor of the younger line of princes of Baden and father of Prince Max of Baden, German Chancellor, and later the heir of Grand Duchy.

Charles (1832–1906), married Rosalie von Beust (morganatic)
Marie (1834–99), married Prince Ernest of Leiningen (1830–1904)
Cecilie (1839–91), known as Olga Feodorovna, married Grand Duke Michael Nicolaievich of Russia (1832–1902), Governor General in Tbilisi.

She died at Karlsruhe Palace on 6 July 1865.
On 25 July 1819 in Karlsruhe, Sophie married her half-grand-uncle Leopold I of Baden. They became the paternal grandparents of the Swedish Queen consort Victoria of Baden.
Sophia and Leopold I had the following children:
Alexandrine (1820–1904), married Duke Ernest II of Saxe-Coburg and Gotha (1818–93), childless marriage due to which Ernest's younger brother Albert's British issue succeeded in that duchy.
Ludwig (1822–1822)
Louis II (1824–58), reigned as Grand Duke 1852–58, deemed mentally unfit to rule.
Frederick I (1826–1907), Grand Duke 1858-1907, Regent 1852–58, father of Queen Victoria of Sweden.
William (1829–97), Prussian General, married Marie of Leuchtenberg, became ancestor of the younger line of princes of Baden and father of Prince Max of Baden, German Chancellor, and later the heir of Grand Duchy.
Charles (1832–1906), married Rosalie von Beust (morganatic)
Marie (1834–99), married Prince Ernest of Leiningen (1830–1904)
Cecilie (1839–91), known as Olga Feodorovna, married Grand Duke Michael Nicolaievich of Russia (1832–1902), Governor General in Tbilisi.
She died at Karlsruhe Palace on 6 July 1865.
Princess Sophie of Sweden