A mosque complex (külliye) was constructed on the site in 1458 by the Ottoman Turks only five years after the conquest of Constantinople in 1453. The present building dates from the beginning of the 19th century. The mosque complex includes a mausoleum marking the spot where Eyüp (Job) al-Ansari, the standard-bearer and friend of the Islamic prophet Muhammad, is said to have been buried.