Question: why hagia sophia was built?
Answer: The Hagia Sophia (Ayasofya in Turkish) was originally built as a basilica for the Greek Orthodox Christian Church. ... At the time of the first church's construction, Istanbul was known as Constantinople, taking its name from Constantius' father, Constantine I, the first ruler of the Byzantine Empire.