On 5 November 1609, she married Duke John Frederick of Württemberg (1582–1628), eldest son of
Frederick I and
Sibylla of Anhalt. On the occasion of their marriage, he had the Golden Hall was built in
Urach Palace in
Bad Urach, which is today one of the most beautiful
Renaissance ballrooms in Germany. They reportedly had a very happy marriage. Her husband died in 1628. In 1630, she began an extensive renovation of
Brackenheim Castle, which was promised to her as her
wittum. The castle contained an art room with 155 paintings, at the time the second largest collection in Württemberg. The art room was well preserved until her death, despite the
Thirty Years' War ravaging the country around it. During the renovation of her castle, she lived in
Schloss Kirchheim in
Kirchheim unter Teck, and in
Stuttgart. She never lived in
Brackenheim, despite the castle, the city, and the
district forming her wittum. Nevertheless, she was considered a benefactor of the city, due to her dedication to the city during the Thirty Years' War and to the foundations she founded. When her husband died, her 14-year-old son
Eberhard III was still a minor and his uncle
Louis Frederick, Duke of Württemberg-Montbéliard acted as regent. After Frederick Louis died on 26 January 1631, the regency was taken up by Barbara Sophia and
Julius Frederick, Duke of Württemberg-Weiltingen, with Barbara Sophia being "high regent". She therefore moved back to Stuttgart in 1632 and became politically active. After the
Battle of Lutzen in late 1632, Julius Frederick joined the war on the Swedish side. His goal was to drive enemy troops out of the country, as well as the Catholic former owners of secularized church properties. Despite his successes, he was accused of acting selfishly. The councilors and the
Estates managed to drive him out of the regency. After Emperor
Ferdinand II declared Eberhard III to be an adult, he took up government on 8 May 1633. He joined the Protestant
Heilbronn League which suffered a crushing defeat at the
Battle of Nördlingen on 6 September 1634. Württemberg was then looted and pillaged. Duke Eberhard and his entire court hastily fled into exile in
Strasbourg. Barbara Sophia died in Strasbourg in 1636 and was buried in the
Stiftskirche, Stuttgart. == Issue ==