Answer
Theodora was likely released from the convent in Gastria around 863. She had been forced into the convent in 842 by her half-sister, the Empress Irene, after Theodora married her cousin, the future Emperor Michael III. Theodora's release from the convent allowed her to become involved in politics again and eventually become Empress of the Byzantine Empire.