The Hagia Sophia was constructed in five years, from 532 to 537, at the orders of Emperor Justinian I and designed by Isidore of Miletus. Immediately after the Turks conquered Constantinople (Istanbul) in 1453, the Hagia Sophia was converted to a mosque.