Stone relief artifacts at the Hagia Sophia Museum in Istanbul, Turkey. The original Hagia Sophia building, which was a church, was built by Constantine the Great in the fourth century. The current building, which is the third, was built between 532 and 537 A.D. and is a classic example of Byzantine architecture.