page_title: Hagia Sophia
section_title: Mosque (1453–1935)
hierarchical_section_title: Hagia Sophia / History / Mosque (1453–1935)
caption_attribution_description: The fountain outside the Hagia Sophia in Istanbul.
context_page_description: Hagia Sophia, officially the Hagia Sophia Grand Mosque and formerly the Church of Hagia Sophia, is a Late Antique place of worship in Istanbul. Built in 537 as the patriarchal cathedral of the imperial capital of Constantinople, it was the largest Christian church of the eastern Roman Empire and the Eastern Orthodox Church, except during the Latin Empire from 1204 to 1261, when it became the city's Roman Catholic cathedral. In 1453, after the Fall of Constantinople to the Ottoman Empire, it was converted into a mosque. In 1935 the secular Turkish Republic established it as a museum. In 2020, it re-opened as a mosque.
  Built by the eastern Roman emperor Justinian I as the Christian cathedral of Constantinople for the state church of the Roman Empire between 532 and 537, the church was then the world's largest interior space and among the first to employ a fully pendentive dome. It is considered the epitome of Byzantine architecture and is said to have "changed the history of architecture". The building was designed by the Greek geometers Isidore of Miletus and Anthemius of Tralles.
context_section_description: Constantinople fell to the attacking Ottoman forces on 29 May 1453. Sultan Mehmed entered the city and performed the Friday prayer and kutbah (sermon) in Hagia Sophia, this action marked the official conversion of Hagia Sophia into a mosque.
  In accordance with the traditional custom at the time, Sultan Mehmed II allowed his troops and his entourage three full days of unbridled pillage and looting in the city shortly after it was captured. Once the three days passed, he would then claim its remaining contents for himself. According to the Encyclopædia Britannica Mehmed II "permitted an initial period of looting that saw the destruction of many Orthodox churches". However, by the end of the first day, he proclaimed that the looting should cease as he felt profound sadness when he toured the looted and enslaved city. 
  Hagia Sophia was not exempted from the pillage and looting and specifically became its focal point as the invaders believed it to contain the greatest treasures and valuables of the city. Shortly after the defence of the Walls of Constantinople collapsed and the Ottoman troops entered the city victoriously, the pillagers and looters made their way to the Hagia Sophia and battered down its doors before storming in.
  Throughout the period of the siege of Constantinople, the trapped worshippers of the city participated in the Divine Liturgy and the Prayer of the Hours at the Hagia Sophia and the church formed a safe-haven and a refuge for many of those who were unable to contribute to the city's defence, which comprised women, children, elderly, the sick and the wounded. Being trapped in the church, the many congregants and yet more refugees inside became spoils-of-war to be divided amongst the triumphant invaders. The building was desecrated and looted, with the helpless occupants who sought shelter within the church being enslaved. While most of the elderly and the infirm/wounded and sick were killed, and the remainder (mainly teenage males and young boys) were chained up and sold into slavery.
  The church's priests and religious personnel continued to perform Christian rites, prayers and ceremonies until finally being forced to stop by the invaders. When Sultan Mehmed and his entourage entered the church, he ordered that it be converted into a mosque at once. One of the ʿulamāʾ (Islamic scholars) present climbed onto the church's ambo and recited the shahada ("There is no god but God, and Muhammed is his messenger"), thus marking the beginning of the conversion of the church into a mosque. Mehmed is reported to have taken a sword to a soldier who tried to prise up one of the paving slabs of the Proconnesian marble floor.
  As described by Western visitors before 1453, such as the Córdoban nobleman Pero Tafur and the Florentine geographer Cristoforo Buondelmonti, the church was in a dilapidated state, with several of its doors fallen from their hinges; Mehmed II ordered a renovation of the building. Mehmed attended the first Friday prayer in the mosque on 1 June 1453. Aya Sofya became the first imperial mosque of Istanbul. To the corresponding waqf were endowed most of the existing houses in the city and the area of the future Topkapı Palace. From 1478, 2,360 shops, 1,300 houses, 4 caravanserais, 30 boza shops, and 23 shops of sheep heads and trotters gave their income to the foundation. Through the imperial charters of 1520 (AH 926) and 1547 (AH 954) shops and parts of the Grand Bazaar and other markets were added to the foundation.
  Before 1481, a small minaret was erected on the southwest corner of the building, above the stair tower. Later, Mehmed's successor Bayezid II (r. 1481–1512) built another minaret at the northeast corner. One of these collapsed after the earthquake of 1509, and around the middle of the 16th century they were both replaced by two diagonally opposite minarets built at the east and west corners of the edifice. In 1498, Bernardo Bonsignori was the last Western visitor to Hagia Sophia to report seeing the ancient Justinianic floor; shortly afterwards the floor was covered over with carpet an
caption: Fountain (Şadırvan) for ritual ablutions
exif: {"Image ImageDescription": "OLYMPUS DIGITAL CAMERA", "Image Make": "OLYMPUS IMAGING CORP.", "Image Model": "IR-300", "Image Orientation": "Horizontal (normal)", "Image XResolution": "72", "Image YResolution": "72", "Image ResolutionUnit": "Pixels/Inch", "Image Software": "Adobe Photoshop CS2 Windows", "Image DateTime": "2013:10:26 16:22:00", "Image YCbCrPositioning": "Co-sited", "Image PrintIM": "[80, 114, 105, 110, 116, 73, 77, 0, 48, 51, 48, 48, 0, 0, 37, 0, 1, 0, 20, 0, ... ]", "Image ExifOffset": "976", "Thumbnail Compression": "JPEG (old-style)", "Thumbnail XResolution": "72", "Thumbnail YResolution": "72", "Thumbnail ResolutionUnit": "Pixels/Inch", "Thumbnail JPEGInterchangeFormat": "1714", "Thumbnail JPEGInterchangeFormatLength": "6527", "EXIF ExposureTime": "1/500", "EXIF FNumber": "33/10", "EXIF ExposureProgram": "Program Normal", "EXIF ISOSpeedRatings": "64", "EXIF ExifVersion": "0221", "EXIF DateTimeOriginal": "2007:07:18 11:58:30", "EXIF DateTimeDigitized": "2007:07:18 11:58:30", "EXIF ComponentsConfiguration": "YCbCr", "EXIF CompressedBitsPerPixel": "2", "EXIF ExposureBiasValue": "0", "EXIF MaxApertureValue": "86/25", "EXIF MeteringMode": "Pattern", "EXIF LightSource": "Unknown", "EXIF Flash": "Flash did not fire, compulsory flash mode", "EXIF FocalLength": "63/10", "EXIF FlashPixVersion": "0100", "EXIF ColorSpace": "sRGB", "EXIF ExifImageWidth": "1528", "EXIF ExifImageLength": "1152", "Interoperability InteroperabilityIndex": "R98", "Interoperability InteroperabilityVersion": "[48, 49, 48, 48]", "EXIF InteroperabilityOffset": "1588", "EXIF FileSource": "Digital Camera", "EXIF SceneType": "Directly Photographed", "EXIF CustomRendered": "Normal", "EXIF ExposureMode": "Auto Exposure", "EXIF WhiteBalance": "Auto", "EXIF DigitalZoomRatio": "0", "EXIF SceneCaptureType": "Standard", "EXIF GainControl": "None", "EXIF Contrast": "Normal", "EXIF Saturation": "Normal", "EXIF Sharpness": "Normal"}