Istanbul, a strategically vital location, has a history marked by frequent wars and name changes, including Constantinople and Istanbul. The same applies to this church; when Christians won, it was called "Hagia Sophia," and when Muslims won, it was called "Ayah Sophia Mosque." The current official name is the latter.