Hagia Sophia was inaugurated by the Emperor Justinian I as an Eastern Orthodox cathedral.

Source