Sophia Jagiellon (6 May 1464–5 October 1512) was a Polish-Lithuanian princess of the Jagiellonian dynasty who became Margravine of Brandenburg-Ansbach and Brandenburg-Kulmbach through her marriage. Born in Kraków, she was the daughter of Casimir IV, King of Poland and Grand Duke of Lithuania, and Elisabeth of Austria. She was named for her paternal grandmother, Sophia of Halshany, and was baptised by John Gruszczynski, Bishop of Kraków.
After early marriage plans involving Archduke Maximilian of Austria and Matthias Corvinus of Hungary came to nothing, Sophia was betrothed to Frederick of Brandenburg in 1473. They married in Frankfurt on 14 February 1479. Her dowry, set at 32,000 florins, was not fully paid during her lifetime; the outstanding sum was eventually paid to their children. When Frederick inherited Ansbach in 1486, Sophia became its margravine consort. Following his inheritance of Bayreuth in 1495, she also held that title.
Sophia and Frederick had 18 children, including Casimir, George, and Albrecht, who became Grand Master of the Teutonic Order and later the first Duke of Prussia. Their family also included children who died in infancy and several daughters who married into German and Silesian princely houses. Sophia died in Ansbach after more than 3 decades of pregnancies and miscarriages. She was buried at Heilsbronn Monastery.