 The architect Trdat was commissioned by Bagratid King Smbat II to build a cathedral in the new capital of the Armenian kingdom.The construction was halted when Smbat died in 989, according to an inscription on the south wall.Meanwhile, Trdat was hired to direct the repairs of the dome of the Hagia Sophia in Constantinople, which had collapsed in an earthquake.