During her second marriage, Zofia had three sons; Alexander (born in 1798), Mieczyslaw (born in 1800) and Boleslaw (born in 1805), and two daughters; Sophia, and Olga (1802-1861). During the marriage, she also had an affair with her stepson, Szczęsny Jerzy Potocki, who may have been the biological father of her son Boleslaw. She also had an affair with the Russian governor, Nikolai Novosiltsov. Stanisław Szczęsny Potocki indulged in mysticism and came under the influence of Polish "Illuminati" and died on 15 March 1805, without having time to say goodbye to her.