The Church of SS Sergius and Bacchus, a church built by Justinian I, became a mosque dubbed the Little Hagia Sophia. The Church of Saint Andrew in Krisei, became the Koca Mustafa Pasha Mosque. The Church of Saint Thekla of the Palace of Blachernae, became the Atik Mustafa Pasha Mosque.