Hagia Sophia started life as a Christian church, ordered by Constantine I in 325 on the foundations of a pagan temple. After few weeks it was burned, and Justinian I inaugurated totally new basilica by two architects worked on the construction during 6 years in order to complete it.