This was evidently the second consecration of the earlier church of St. Sophia (cf. I. 16, II. 6); the first consecration was celebrated in 326 a.d. Later, the structure was destroyed in a fire, in connection with a popular uprising; and the great church of St. Sophia, at present a Mohammedan mosque, was erected by Justinian, with Isidore of Miletus and Anthimius of Tralles as architects.