Dedicated in 537, Hagia Sophia has been the cathedral of the Patriarch of Constantinople (until 1453), a mosque (until 1931), and a museum (since 1935).