 During the second half of the ninth century, Emperor Basil I (r. 867–886) wholly rebuilt the church, which possibly had been damaged during the iconoclastic fights.Around 1284, Princess Theodora Raoulaina, niece of Michael VIII Palaiologos (r. 1259–1282) and wife of "protovestiarios" John Raoul Petraliphas, rebuilt the monastery and the church, deserving the appellation of second "ktētorissa".She spent the last fifteen years of her life in the monastery, and was buried there.