Mosque of Ibn Tulun

جامع ابن طولون

al-Qata'i

A congregational mosque built by Ahmad ibn Tulun at al-Askar in the new quarter of al-Qata'i, north of Fustat, and the oldest mosque standing intact in Cairo. It is of brick faced with stucco, with a square courtyard ringed by four arcaded halls, an outer enclosure called the ziyada, and a stone spiral minaret rooted in the minarets of Samarra. Sultan Lajin restored it in 696/1296-7 in fulfilment of a vow, and scholars disagree on how much of the minaret is his. The Encyclopaedia of Islam treats it in passing, in its articles on Ibn Tulun, the Tulunids, Cairo and the mosque as a type.

Depth

At a glance

Era
The Early Abbasid Caliphate
Region
Egypt & Nile
Identifiers
Wikidata

In time

870880890
Abbasid Fragmentation

In space

al-Qata'i

Map: Natural Earth, public domain · places and route from the graph

Images

A broad empty mosque courtyard under a blue sky, with a square domed stone fountain pavilion in the centre and pointed-arch arcades on the sides. This is the mosque, not the hospital.
Berthold Werner, Kairo Ibn Tulun Moschee BW 0.jpg, 4 November 2010; CC BY 3.0 (https://creativecommons.org/licenses/by/3.0/); Wikimedia Commons: https://commons.wikimedia.org/wiki/File:Kairo_Ibn_Tulun_Moschee_BW_0.jpg · Licence: CC-BY · Media record

Architecture

Overview

Ahmad ibn Tulun built the mosque in al-Askar, beside the upper police headquarters, known as al-Shurta al-Ulya. 1 Yeomans calls it the largest and oldest mosque standing in Egypt, and in his judgement the finest in grandeur and simplicity; he dates it between 876 and 896 and notes that, apart from thirteenth-century restoration, it keeps the coherence of its original design. 2 The Encyclopaedia of Islam, second edition, has no article on the building itself. It treats the mosque in passing, in the articles on Ibn Tulun, on the Tulunid dynasty, on Cairo and on the mosque as a type, and it names it as the great mosque of the new quarter of al-Qata'i. 3 4

Ibn Tulun and the founding of al-Qata'i

The Encyclopaedia introduces Ahmad ibn Tulun as the founder of the Tulunid dynasty and the first Muslim governor of Egypt to annex Syria. It describes him as a vassal of the Abbasid caliph in name only, born in Ramadan 220/835, the son of Tulun, who is said to have been among the tribute sent by the governor of Bukhara to the caliph al-Ma'mun around 200/815-6. It says he entered Fustat on 23 Ramadan 254/868 as lieutenant of the governor Bakbak, his father-in-law. 5 The foundation of his power was an army bought with the caliph's authorisation, the first large military force in Egypt that did not depend on the caliphate. 5 He occupied Syria in 264/878. 3

The article credits the prosperity of Egypt under him chiefly to the fact that most of the state revenue stopped being drained off to the metropolis and was spent in Egypt instead, which stimulated trade and industry and paid for a new quarter north of Fustat, al-Qata'i, the seat of government under the Tulunids, where his great mosque stood. 3 The article on the Tulunids adds a reading of its own: founding the quarter, and replacing the mosque of Amr ibn al-As (may God be pleased with him) with a new congregational mosque, answered overcrowding caused by the arrival of new regiments. 4 The geographer al-Istakhri counts only two congregational mosques for Cairo, that of Amr and that of Tulun. 6

Site and building

He built his mosque on the hill of Yashkur, and there he carried out a great building programme. 7 The mosque was the heart of al-Qata'i, the city Ibn Tulun laid out on the model of Samarra; when the caliph's army sacked the city in 905 and destroyed its palaces, only the mosque survived. 8 9 The Encyclopaedia repeats a tradition, taken from al-Maqrizi, that the mosque stands where Moses spoke with his Lord. 10

On cost, the same article states that raising the mosque cost its builder 120,000 dinars. 11 Hanging lamps on chains were used for lighting when the mosque was built. 12

The divan

When al-Askar became the residence of Egypt's emirs, the divan, the government office, moved to Ibn Tulun's mosque. Under al-Aziz billah it moved again, to the house of the vizier Ya'qub ibn Killis. 13 The Encyclopaedia likewise records the divan's move to the mosque of Ahmad ibn Tulun, and adds that under the Fatimids the vizier Ya'qub ibn Killis first used the Dar al-Imara of the mosque for his sessions, before moving to his own palace and later to the caliph's palace. 14

The Dar al-Imara and the maksura

When Ibn Tulun built the mosque, a building called the Dar al-Imara went up on its south side. The ruler, who by then lived in another new palace, had rooms there to change his robes and could pass straight from them into the maksura, the enclosed prayer space beside the mihrab. 15 16 The Encyclopaedia presents this as the continuation of an older habit of placing the governor's residence next to the congregational mosque, as with the Jami al-Askar in Cairo, planned in 169/785-6. 16

The story of the Coptic architect

Al-Balawi, a tenth-century historian, tells that the Copt who built the Aqueduct of Basatin also designed the mosque: Ibn Tulun imprisoned him over a fault in the aqueduct, then freed him when he sought a way to build a mosque without columns, since at least three hundred columns were reckoned necessary and acquiring them would mean stripping churches; the Copt proposed brick piers. 17 18 Yeomans finds the story very unlikely: in his view Copts took part in the building and gave technical advice, but the design was a Samarran import carried out by many Iraqi builders, and brick piers are a feature of Samarran architecture, not a Coptic influence. 18 2

Plan and materials

The mosque is of the hypostyle type: a square courtyard, the sahn, surrounded by four arcaded halls, five aisles deep on the qibla side and two aisles deep on each of the other three sides. 2 Each side of the sahn has thirteen pointed arches; the arcades of the prayer hall run parallel to the qibla wall in seventeen arches; the mihrab aisle is like the others, and no dome or raised aisle marks the façade. 2 The minaret is of stone, while the rest of the mosque is red brick faced with stucco, which sets it apart from most Cairene mosques. 2

An outer wall surrounds the mosque and forms the ziyada, a feature of the Samarran mosques; Creswell suggested it may go back to the Roman temenos, the wall around a sacred enclosure, and that the ninth-century streets probably converged on the ziyada's doors. 2 The ablution facilities were in the ziyada. 2 The walls hold over 120 pointed windows with stucco grilles of many periods, of which Creswell identified only four as original. 19

The Encyclopaedia's article on the mosque as a building type uses the Ibn Tulun mosque for three points. It cites the ziyada as an example of a broad open enclosure added on three of four sides to increase the apparent scale of a mosque, in this case presumably copying Samarra, and gives the date of completion as 264/878. 20 It lists the mosque among the Egyptian examples, with al-Azhar and the mosque of al-Hakim, whose arcades run parallel to the qibla, a layout it suggests may reflect the influence of Christian basilicas in the region. 21 And it names the piers with engaged corner colonnettes as a variation on the classical column. 22

The fountain and the ablution place

An ornamental fountain in the middle of the sahn burned down in 986; Ibn Duqmaq describes a gilt dome on ten marble columns, with sixteen marble columns around it, a marble basin four cubits across beneath, and a sundial on the roof. 23 The Encyclopaedia, drawing on al-Maqrizi, gives a similar picture with different numbers: a gilt dome on sixteen marble columns inside a railing, an upper storey on nineteen columns, and below it a marble basin with a running fountain. The article itself remarks that the description is not quite clear. 24 It adds that the call to prayer was given from this dome, and that the mosque had no washing place. When people complained, Ibn Tulun answered that he had left it out because he judged it would pollute the mosque; he built a washing place with an apothecary's shop behind the mosque,. 25 24

The present fountain is the thirteenth-century work of Sultan Lajin: a domed cube opened by pointed arches, with an octagonal basin inside and five tiers of muqarnas carrying the dome. 23 26

The minaret and the debate on its date

The stone minaret stands between the north-west wall of the mosque and the ziyada wall, in four storeys: a square base with an external staircase winding anti-clockwise up to a cylindrical tower, topped by two octagonal shafts and a small ribbed dome. 2 27 Its roots lie in the spiral minarets of Samarra and Abu Dulaf in Iraq. 27 The article on the Tulunids judges that the well-known tower probably combines features borrowed from Samarran architecture with more local patterns. 4 Ibn Duqmaq, al-Maqrizi and al-Ya'qubi relate that Ibn Tulun twisted a piece of paper round his finger and ordered his architects to build the minaret in that shape. 27

Scholars disagree on the age of the present minaret. 27

  • Creswell: first thought it a mixture of Ibn Tulun's work and Lajin's restoration, then, after the consistency of the stonework was revealed in 1920, held it to be entirely Lajin's. 27
  • Doris Behrens-Abouseif: a total reconstruction would have carried a commemorative inscription. 23
  • M. Tarek Swelim: the rectangular base with its Andalusian horseshoe windows was probably built in the Ayyubid period with the help of Maghribi builders who settled in the mosque under Salah al-Din; the cylinder kept the original shape in acknowledgement, and the octagonal shafts are thirteenth-century additions with no proof that they are Lajin's. 23
  • Yeomans: asks why Lajin, had he rebuilt the whole, would build only the top shafts in the Mamluk style, and notes that the arched bridge joining the minaret to the mosque blocks a window and was no part of the original design. 23
  • The Encyclopaedia's article on Cairo: describes Lajin's work as including the virtual rebuilding of the minaret. The article gives no further argument on the point. 28

Lajin's restoration

Lajin took sanctuary in the abandoned mosque in 1296 after the assassination of Sultan al-Ashraf Khalil, and vowed to restore it if he survived to take the throne; he became sultan the following year and kept his vow. 27 The fountain, the minaret's octagonal shafts, the minbar and repairs to the mihrab are attributed to him. 27

The Encyclopaedia's article on Cairo calls this the most considerable restoration of the whole period. It lists two mihrabs, a domed fountain in the middle of the courtyard, a sundial and the virtual rebuilding of the minaret, together with structural repairs it does not specify, and it dates the work to 696/1296-7, in prompt fulfilment of a vow, as shown by the date of the minbar, set up a fortnight after his accession. 28 A sundial dated 696/1296-7 is still kept in the mosque. 25 Apart from Lajin's restoration, the article places the main period of mosque building in Cairo from 715/1315 onwards. 29

The stucco decoration

In the arcades facing the sahn each brick pier has an engaged colonnette at each corner with vine-leaf capitals; a band of stucco scrollwork frames each arch, windows pierce the spandrels, and a string course of rosettes in octagonal frames runs beneath the cornice. 19 Along the outer walls runs a band of crenellation that Yeomans likens to ranks of soldiers standing shoulder to shoulder. 19

Yeomans regards the stucco here as a milestone in Islamic art, because it survives in place, whereas very little of the Samarran stucco survives in situ. 19 30 The decoration of the arch soffits is in Samarra style B: vine leaf, acanthus, palmettes and rosettes in new combinations filling geometric networks of interlacing circles, triangles and squares. 31 Only fragments of woodwork in the door soffits derive from style C. 32 The English designer Owen Jones devoted a whole page of his Grammar of Ornament, published in 1856, to the mosque, seeing it as a critical stage in the evolution of Islamic ornament that peaked at the Alhambra. 32

Worship, learning and upkeep

At the consecration of the mosque, the builder gave al-Rabi ibn Sulayman, a pupil of al-Shafi'i who lectured on hadith there, a purse of 1,000 dinars. 33 A commission under the chief qadi was appointed after the building to settle the direction of the qibla. 34 Ibn Tulun placed boxes of Qur'an copies in the mosque, and later the Fatimid caliph al-Hakim added 814 copies. 25

Of the muezzins, the Encyclopaedia says that in the Tulunid period they kept night vigils in the minarets. 15 It also reports that in Egypt Ahmad ibn Tulun and his son Khumarawayh allowed twelve men to lodge in a chamber near a minaret to praise God, four of them taking turns each night with Qur'an recitation and pious poems. 35 Under the two rulers the muezzins recited religious texts through the night in a special room, and Ahmad ibn Tulun gave them large sums. The article does not name the mosque in these passages. 36 37

For the upkeep of the mosque and a hospital he founded, Ibn Tulun made over a large number of houses as an endowment, a waqf. 11 The Encyclopaedia also reports, on the authority of the traveller Nasir-i Khusraw, that al-Hakim paid Ibn Tulun's descendants 30,000 dinars for the mosque and 5,000 for the minaret, as part of the older practice of leaving the management of major mosques to the founder's family. Later, an emir or other official is recorded as its administrator. 38

Fatimid and Ayyubid times

From the Fatimid period onwards, the parts of al-Qata'i south of the mosque became increasingly joined with the southern cemetery. 39 The Encyclopaedia's article on Cairo records that the Fatimid vizier al-Afdal restored the mosque and added a mihrab around 487/1094. It adds that the Alid profession of faith on it was never defaced, and that no restoration inscription from the Ayyubid period exists for the mosque. 40 It also notes that the courtyard façade of al-Azhar took over from this mosque its blind arcading and rosettes, under the caliph al-Hafiz, and that al-Azhar was built much on the lines of the Ibn Tulun mosque, with a sahn and surrounding aisles multiplied on the qibla side. 41 42 The article gives the Fatimid restorations of the mosques of Amr, Ibn Tulun and al-Azhar a political motive, the spread of the Fatimid mission, together with the need to cope with a growing population. 28 In the seventeenth century a house, the Bayt al-Kiritliyya, was built beside the mosque. 43

A note on the date

Yeomans places the building between 876 and 896, while the date field of this record gives 879 from Wikidata. 2 The Encyclopaedia's article on the mosque as a type gives its completion as 264/878. 20 The three dates are shown here and not reconciled. The Encyclopaedia's own coverage of the building is scattered over several articles and does not describe it as a whole; for the plan, the stucco and the minaret debate this page relies on Yeomans.

Connections

Explore the connections

Built by
Ahmad ibn Tulun
Patronized by
Lajin
Located in
al-Qata'i
Exemplifies
Samarran stucco styles (A, B, C)
Depicted in
Context photograph: Ibn Tulun's mosque courtyard, not the hospital
Mentioned in
The Art and Architecture of Islamic Cairo

People and things also explored

Samarran stucco styles (A, B, C)· al-Qata'i· The Art and Architecture of Islamic Cairo· Arabesque· Al-Fustat· Mosque-Madrasa of Sultan Hasan· Nilometer of Rawda Island, Cairo· Richard Yeomans

Sources

  1. Al-Maqrizi, al-Mawaiz wa-l-i'tibar bi-dhikr al-khitat wa-l-athar (al-Khitat al-Maqriziyya), ed. Muhammad Zaynhum and Madiha al-Sharqawi (Cairo: Maktabat Madbuli, 1998) , p.881
  2. Richard Yeomans, The Art and Architecture of Islamic Cairo (2006) , p.32
  3. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 1 p. 301
  4. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 10 p. 668
  5. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 1 p. 300
  6. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 683
  7. Al-Maqrizi, al-Mawaiz wa-l-i'tibar bi-dhikr al-khitat wa-l-athar (al-Khitat al-Maqriziyya), ed. Muhammad Zaynhum and Madiha al-Sharqawi (Cairo: Maktabat Madbuli, 1998) , p.882
  8. Richard Yeomans, The Art and Architecture of Islamic Cairo (2006) , p.29
  9. Richard Yeomans, The Art and Architecture of Islamic Cairo (2006) , p.41
  10. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 678
  11. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 698
  12. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 692
  13. Al-Maqrizi, al-Mawaiz wa-l-i'tibar bi-dhikr al-khitat wa-l-athar (al-Khitat al-Maqriziyya), ed. Muhammad Zaynhum and Madiha al-Sharqawi (Cairo: Maktabat Madbuli, 1998) , p.279
  14. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 697
  15. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 689
  16. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 695
  17. Richard Yeomans, The Art and Architecture of Islamic Cairo (2006) , p.30
  18. Richard Yeomans, The Art and Architecture of Islamic Cairo (2006) , p.31
  19. Richard Yeomans, The Art and Architecture of Islamic Cairo (2006) , p.36
  20. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 706
  21. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 707
  22. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 708
  23. Richard Yeomans, The Art and Architecture of Islamic Cairo (2006) , p.34
  24. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 694
  25. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 690
  26. Richard Yeomans, The Art and Architecture of Islamic Cairo (2006) , p.35
  27. Richard Yeomans, The Art and Architecture of Islamic Cairo (2006) , p.33
  28. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 4 p. 458
  29. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 4 p. 452
  30. Richard Yeomans, The Art and Architecture of Islamic Cairo (2006) , p.37
  31. Richard Yeomans, The Art and Architecture of Islamic Cairo (2006) , p.38
  32. Richard Yeomans, The Art and Architecture of Islamic Cairo (2006) , p.39
  33. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 701
  34. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 700
  35. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 684
  36. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 703
  37. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 704
  38. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 699
  39. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 4 p. 445
  40. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 4 p. 451
  41. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 4 p. 449
  42. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 4 p. 453
  43. Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 4 p. 456
  • Wikidata
Cite this page

islam.museum contributors. “Mosque of Ibn Tulun”. islam.museum, https://islam.museum/en/building/masjid-ibn-tulun/. CC BY-SA 4.0. Last updated 2026-11-22.

Improve this page on GitHub · Report an error · Help complete it · JSON

Wing

Objects

Manuscripts, art, architecture and relics from collections worldwide.
Related

Samarran stucco styles (A, B, C)

Herzfeld's and Creswell's division of the stucco excavated in the Abbasid palaces of Samarra into three coexisting styles, brought to Egypt by Ibn Tulun and preserved in situ in his mosque.