Hagia Sophia, the church dedicated to the Holy Wisdom which was rebuilt by Emperor Justinian in 537 is both the most imposing monument of theByzantine Empire and a summary of its history. ... The current building is the third church: because of its size it was usually referred to as Megalo Ecclesia (Great Church).