According to the Ecclesiastic History of John of Ephesus, Sophia was a niece of Theodora,[REF] the Empress consort of Justinian I. John of Ephesus did not specify the identities of her parents.
During the reign of Justinian I (527-565), Theodora arranged for Sophia to marry his nephew Justin [REF].