The mosque complex replaced one which was destroyed during the conquest of Constantinople
It was the first imperial mosque to be built following the Conquest of Constantinople in 1453, and its k??lliye (mosque complex), the biggest in the whole of the Ottoman Empire, included a hospital, poorhouses, a mental asylum, visitors' accommodation, and a number of schools teaching science, mathematics, history, and Koranic studies.