Anna Sophia of Brandenburg (March 18, 1598–December 19, 1659) was a German princess who became Duchess of Brunswick-Lüneburg and Princess of Brunswick-Wolfenbüttel through her marriage to Frederick Ulrich. She was the eldest daughter of John Sigismund, Elector of Brandenburg, and Anna, Duchess of Prussia. Born in Cölln, she grew up in a family whose religious and political divisions would shape her life.
In September 1614, Anna Sophia married Frederick Ulrich. Their union was unhappy and childless, and his limited capacity to govern led his mother, Elizabeth of Denmark, to take control of the duchy from 1615 to 1622. Anna Sophia later supported her sister Maria Eleonora’s marriage to Gustavus Adolphus of Sweden. In 1622, she began a relationship with Francis Albert of Saxen-Lauenburg. Letters to him, discovered after his defeat in battle in 1623, revealed her hostility toward her husband and his family. She left Brunswick for Berlin that year and appealed to Emperor Ferdinand II, saying Frederick Ulrich had denied her his marital affection.
Negotiations over the couple’s separation continued until Frederick Ulrich died in 1634, before their divorce was completed. Anna Sophia eventually secured control of her dower lands and settled in Schöningen. In 1638, she acquired a building there for a Latin school; the Anna-Sophianeum opened at Easter 1640. During the Thirty Years’ War, she corresponded with Emperor Ferdinand II and military commanders, and helped negotiate prisoner exchanges on behalf of Brandenburg. She died in Berlin on December 19, 1659, after years of declining health and mental capacity.