The church originally belonged to the religious community of St. Catherine's monastery in the Sinai (now part of Egypt), and it acted as a center of learning.
The church later was taken over by Muslims and turned into a mosque.