After the conquest of Constantinople in 1453, the church was assigned personally by Mehmed II to the "Kalenderi" sect of the Dervish. The Dervishes used it as a zaviye and "imaret" (public kitchen), and the building has been known since as "Kalenderhane" ().