human
How did the Hagia Sophia change from a church to a mosque?
assistant
The Hagia Sophia was originally built as a church in the 6th century. It was converted to a mosque in 1453 when the Ottomans conquered Constantinople. The Hagia Sophia was a major religious and cultural center in the Byzantine Empire, and it was the largest church in the world at the time.