
Islamic Geometry and the Courtyard
How to read a mosque from its plan, from Kairouan's forest of columns to Isfahan's four iwans; the Alhambra's talking walls and marble lions; why the idea of a blanket ban on images is wrong; the fight over girih tiles and Penrose patterns; muqarnas; and the courtyard house as a machine for staying cool. Then an eight-point star with compass and straightedge.
- 11 min
- 10 steps
- 8 questions
- 7 hands-on
- Lesson 26 of 28 in Architecture
In this lesson
- The court and the hall
- Four iwans at Isfahan
- The Alhambra talks
- Why no figures, and where
- Girih and the argument
- Muqarnas
- The house that turns inward
- Where to go and look
- Try it
Picking up where you left off.
Mosque builders had a program unlike a cathedral’s. The Five Pillars explains the prayer: rows of people facing one direction, the qibla, marked by a niche, the mihrab 1. A building for that needs breadth more than length. This lesson reads two plans, then the ornament and the arguments about it, then the house.
The court and the hall
The Great Mosque of Kairouan in Tunisia is the plan at its clearest. Founded in 670, it owes its final form to Ziyadat Allah, 836 to 841 2. UNESCO gives its size as 135 by 80 m 3; Tunisia’s own heritage site says 126 by 75 and calls it an irregular quadrilateral 2. Either way the plan is simple. A prayer hall of seventeen aisles, eight bays deep, runs along the qibla wall on a forest of marble and porphyry columns. A paved court lies in front of it, with porticoes around it, and a square minaret 31.5 m tall stands on the axis at the far side 3 2.
What to notice first: the hall is wider than it is deep. A nave of the kind in Romanesque and Gothic pulls you toward one distant point. Here the aisles are short, so the front row, the one along the qibla wall, is long. The axis is marked by a high, wide arch on the court side and a ribbed cupola before the mihrab 2. The teak minbar of 862, more than 300 carved panels, is the oldest to survive, and the luster tiles around the mihrab are the same date 2.
Kairouan served as a model across the Maghreb 3. Córdoba, capital of an emirate and then a caliphate, had its Great Mosque turned into a cathedral in the 1200s, and UNESCO still calls it the mosque-cathedral 4.
Four iwans at Isfahan
Iran took a different road. An iwan is a vaulted hall opening onto a court 5. The Masjed-e Jāme of Isfahan began in 841 and grew for twelve centuries to more than 20,000 square meters. In its Seljuq expansion, builders set an iwan in the middle of each side of the court, a layout adapted from Sassanid palaces and the first such use in a mosque 6.
The court, 60 by 70 m, reads like a town square with four great doors. They aren’t equal. The southern iwan is the grandest, because it stands before the Nezam al-Molk dome chamber on the qibla side, and the northern one is much narrower 5. That dome, the earliest double-shell ribbed dome, came first, and the iwan was added to tie it to the court 6 5. The mosque became a prototype for the region, and it works as a textbook, since Seljuq, Ilkhanid, Timurid, and Safavid hands all left work in it 6.
Sort
This exercise needs JavaScript.
Kairouan grew from the hypostyle hall. Isfahan’s Seljuq builders turned a palace form to religious use, and later mosques across the region followed.
The Alhambra talks
The Alhambra above Granada is a palace, so the rules loosen. UNESCO calls it the only preserved palatine city of the Islamic period. Its materials are humble, plaster, wood, and ceramic, and Arabic inscription turns the walls into “talking architecture” on religious, political, and poetic themes 7.
Muhammad V built the Palace of the Lions, probably between 1370 and 1391: an arcaded court with a fountain whose basin rests on twelve lion figures. Four channels divide the court into quarters and run into basins in the halls around it 8. So one palace carries both the inscriptions and the animals.
Why no figures, and where
The old textbook line says Islam banned images, so artists turned to pattern. That won’t survive a visit. Quseir Amra in Jordan, an Umayyad bath of the early 700s, has walls full of hunting scenes, portraits, animals, and Greek and Arabic inscriptions, with a zodiac on the dome of the hot room 9. The David Collection’s director called the belief “not correct, though it can be considered a qualified truth”: caution about figures is real in many religious settings, and Muslim views have changed across time and place 10.
The qualified truth is about where. In mosques, tombs, and Qur’ans, figures are shunned because they might be mistaken for idols 11. Pictures of the Prophet are widely rejected 12, though the same exhibition showed a 15th-century album leaf of him among angels 10. Religious buildings lean on three families of ornament, each with its own job:
| Family | Job | Look for it |
|---|---|---|
| Calligraphy | carries meaning; the most esteemed art 11 | bands around arches and at eye level |
| Geometry | covers any surface and can grow without limit | panels, walls, and the fields around script |
| Vegetal scroll | fills and softens, curling inside frames | spandrels and medallions |
Geometric and vegetal pattern go together in the same source 11. The last two columns are a way of looking, not a rule, and placement varies by place and century. Read one wall and you can usually pick out all three.
Quick check
Quseir Amra’s bath has hunting scenes and portraits from the early 700s, and the Alhambra’s fountain stands on lions. Caution about figures is strongest in mosques, tombs, and Qur’ans, and views have varied across time and place.
Find it
This exercise needs JavaScript.
This is square script, built from straight lines on a grid like the tiles around it. The same wall carries all three families: a flowing inscription, star patterns, and vegetal scrolls.
Girih and the argument
Girih are star-and-polygon strapwork patterns. The conventional view held that designers drew the lines directly with compass and straightedge. In 2007 the physicists Peter Lu and Paul Steinhardt proposed something else. By about 1200, they argued, designers had switched to a set of five equal-edged tiles decorated with lines, which join into the pattern when laid edge to edge. By the 1400s, adding a rule for subdividing tiles, they reached a nearly perfect quasi-crystalline Penrose pattern at the Darb-i Imam shrine in Isfahan, dated 1453, five centuries before Penrose 13. The tile outlines appear on the Topkapi scroll, a 15th-century designer’s roll 13.
Their own paper sets limits. They found 11 mismatches in 3,700 tiles, no sign that the designers knew Penrose’s matching rules, and an “incomplete understanding” 13. Lu has no evidence that physical tiles were ever made 14. Others push harder. Carol Bier points out that Emil Makovicky in 1992 and Jay Bonner in 2003 had already described such tilings and sub-grids, and calls the matter a heated debate 15. Peter Cromwell, as summarized by Chris Cambré, finds the subdivision rule shrinks shapes more than eightfold at each step, too much to repeat in practice, and sees workers filling a given panel pragmatically, with no thought of infinite tilings 16.
So: the shapes are real, the fit is striking, and the intent is unknown. “Medieval Muslims discovered quasicrystals” says more than the evidence does.
Sort
This exercise needs JavaScript.
The drawings and the fit to Penrose tiles can be checked. What the designers knew or intended cannot, and Lu himself says he has no evidence that the tiles were made.
Find the mistake
This exercise needs JavaScript.
Darb-i Imam is dated 1453, five centuries before Penrose. Makovicky wrote in 1992; 2003 is the year of Jay Bonner’s description.
Muqarnas
Muqarnas is stalactite work: small niches stepped out in tiers, joined by tiny arches, used on door heads, niches, cornices, and under minaret galleries. It became common in the 1100s and reached its height in the 1300s and 1400s 17. The cells break a hard transition, from straight walls to a vaulted head, into many small steps. Domes and Vaults shows the bigger problem of setting a round dome on a square room.

What to notice first: stand under one and count tiers. Isfahan’s south iwan got its great muqarnas and mosaic tile in the late 1400s under Uzun Hasan 5.
Fill the blanks
This exercise needs JavaScript.
Girih is star-and-polygon strapwork, the minbar is the carved pulpit (Kairouan’s is from 862), and a bādgīr is a windcatcher.
The house that turns inward
A traditional house in these cities shows the street almost nothing. Rooms open to the court 18. Measurements from Fez show what dense planning does. A team compared Seffarine, in the old medina, with a modern suburb in 2000. The old street was 1.4 m wide between four-storey walls, a height-to-width ratio of about 10, against 0.6 in the suburb 18.
| Measured, clear days | Old street | Modern street |
|---|---|---|
| Hours before sunrise | 2 to 4 °C warmer | colder |
| Early afternoon | about 10 °C cooler | hotter |
| Daily swing | about 6 °C | about 20 °C |
In summer the old street stayed within the comfort zone and the modern one was extremely uncomfortable. In winter neither was comfortable, and the modern one did better, which is the price of permanent shade 18. Those are street figures, not courtyard ones, though the logic carries. In old Damascus, Mousli and Semprini monitored a courtyard house through a summer and treat such houses as generally comfortable in hot weather 19.
Yazd adds the windcatcher, or bādgīr. Yazd is called “the city of wind catchers,” with towers from 30 cm to 5 m above the roof, and one at Dowlatābād that rises 33.35 m. Vents catch the wind and send it down to summer rooms and basements, which are slept in on hot afternoons. In still air, the sun-warmed tower pulls cool air up from the court and basement 20. Each district sits on a qanat, an underground water channel, and houses have courts sunk below ground level 21.
Work it out
This exercise needs JavaScript.
Height is ratio times width: 10 × 1.4 = 14 m, about four storeys. Almost no sky reaches the street, and the measured daily swing there was about 6 °C against 20 °C on a modern street.
Where to go and look
- Kairouan: stand in the court and find the axis from minaret to dome 2.
- Isfahan: walk the four iwans, then compare the Nezam al-Molk dome with the bays around it 6.
- Granada: follow the water from the fountain into the halls 8.
- Yazd: count the windcatcher vents on one street 20.
- Read: Lu and Steinhardt’s paper is free on Lu’s site, and short 13.
Try it
You need a compass, a straightedge, and a pencil. No ruler marks.
Draw a line and a circle on it. Find the perpendicular with arcs from A and B 22, and bisect each quarter the same way 23. Join every second point, then the other four. Now repeat the star on a grid, with the circles touching. Which shape appears in the gaps between stars?
Then find any tiled floor, window, or quilt with stars. Trace one unit and ask what was drawn first.
Put in order
This exercise needs JavaScript.
The arcs do the measuring, so every point comes from a crossing, not a ruler mark.
Lesson complete
Nice work.
Teach it back
In two sentences, explain Islamic Geometry and the Courtyard to a friend who missed it.
Related lessons
Among the starsLessons that point here
Sources for this lesson
- 1Saphinaz-Amal Naguib, Kari Vogt. moské. Store norske leksikon. verifiedIn Norwegian. Mosques face Mecca; the qibla is marked by a niche (mihrab), often shaped as a portal, with the pulpit (minbar) usually to its right; large mosques have minarets; men and women have separate areas; the plan descends from the Prophet's house in Medina; worshippers stand in rows shoulder to shoulder. Norway has over 200 Muslim congregations, mostly in converted buildings: Masjid Attouba in a former Oslo school; Alnor senter and Al-Rahma mosque in Tromsø, like mosques in Stavanger, Bergen and Trondheim, in old wooden houses; Hammerfest's Islamic centre in a former Folkets Hus; a Stavanger centre in a former Christian prayer house. Eight buildings in Norway were built as mosques from the ground up; the first, Central Jam-e-Mosque in Åkebergveien, Grønland, Oslo (World Islamic Mission), was taken into use in 1995.
Also cited in Islam in America and the North, The Five Pillars.
- 2The Great Mosque of Kairouan. Patrimoine de Tunisie, Republic of Tunisia. verifiedFounded 670 by Uqba ibn Nafi; final plan owed to Ziyadat Allah, 836-41. An irregular quadrilateral 126 m long and about 75 m wide. Seventeen naves perpendicular to the qibla wall, eight bays. A ribbed cupola on squinches stands where the axial nave meets the bay along the mihrab wall. Minaret 10.67 m square at the base, 31.50 m high. Teak minbar of 862, more than 300 panels, oldest surviving minbar. Metallic-luster tiles on the mihrab, 862.
- 3Kairouan. UNESCO World Heritage Centre. verifiedFounded 670. The Great Mosque, rebuilt in the 9th century, forms a quadrilateral of 135 by 80 m. At its southern end a hypostyle prayer room with 17 naves on a forest of marble and porphyry columns; on the north a flagstone court with porticoes, and a massive square three-storey minaret in the middle of the northern end. Model for several Maghreb mosques.
- 4Historic Centre of Cordoba. UNESCO World Heritage Centre. verifiedCordoba became capital of an emirate in the 8th century and of the independent Caliphate in 929. The Great Mosque was turned into a cathedral in the 13th century under Ferdinand III; UNESCO calls it the mosque-cathedral.
- 5Masjed-e Jāme' of Isfahan (Iran), No 1397, advisory body evaluation. ICOMOS, for the UNESCO World Heritage Committee. verifiedP. 135: court of 60 by 70 m with four iwans, vaulted halls opening into the court, in the cardinal directions. The north-south axis marks the qibla and stresses the southern iwan and the maqsura, site of the Nezam al-Molk dome, the mosque's first dome. P. 136: the iwans differ in size and rank; the southern, largest, lies before the dome chamber and was built to tie the free-standing dome to the court; its muqarnas and mosaic tile date from Uzun Hasan in the late 9th century AH; the northern is much narrower. Cited at: p. 135; pp. 135-136; p. 136.
- 6Masjed-e Jāmé of Isfahan. UNESCO World Heritage Centre. verifiedTwelve centuries of mosque building starting in 841; over 20,000 square meters; the oldest preserved building of its type in Iran. First Islamic building to adapt the four-iwan courtyard of Sassanid palaces to religious architecture, in its Seljuq expansion, and a prototype for later mosques. The Nezam al-Molk dome is the earliest double-shell ribbed dome.
- 7Alhambra, Generalife and Albayzín, Granada. UNESCO World Heritage Centre. verifiedThe only preserved palatine city of the Islamic period, the best example of Nasrid art. Plaster, wood, and ceramics as decoration; with Arabic epigraphy the buildings became 'talking architecture' on religious, political, and poetic themes of the Nasrid dynasty.
Also cited in Zellige: The Geometry of Fez Tile.
- 8Palace of the Lions. MIT Libraries, Dome, Aga Khan Visual Archive. verifiedBuilt by Muhammad V, probably 1370-1391, beside the Palace of the Myrtles. A central arcaded court with a fountain whose basin rests on twelve lion figures; four channels divide the court into quarters and end in basins in the halls around it, including the Hall of the Two Sisters and the Hall of the Abencerrajes.
- 9Quseir Amra. UNESCO World Heritage Centre. verifiedEarly 8th-century Umayyad desert establishment with a reception hall and bath, richly decorated with figurative murals: classical themes, Byzantine-style portraits, hunting scenes, animals and birds, inscriptions in Greek and Arabic, and a zodiac on the dome of the hot room.
- 10The Prophet Mohammed Meets the Angels (object of the month). Asian Art Newspaper, March 2021. verifiedOn the David Collection's 2018 exhibition The Human Figure in Islamic Art. Most people believe figures are forbidden in Islamic art. Kjeld von Folsach, director: 'This is not correct, though it can be considered a qualified truth'; in many religious contexts there was and is reluctance or caution; Muslim views have changed over time and vary.
Also cited in Muhammad and the Qur'an.
- 11Arts and Culture of the Muslim World. Bridging Cultures Bookshelf: Muslim Journeys (National Endowment for the Humanities and American Library Association). verifiedIn mosques, tombs, Qur'ans, and other explicitly religious work, Islam shuns human and animal figures because they might be mistaken for divine effigies or idols. Artists built an ornamental tradition of crisp geometric and swirling vegetal patterns; meaning is carried by calligraphy, the most esteemed art form, regarded as the highest expression of Islamic art.
- 12Kari Vogt. Muhammed. Store norske leksikon. verifiedIn Norwegian. Muhammad ibn Abd Allah was born in Mecca about 570, then a trading and pilgrimage town and the hub of the Arabian caravan trade; he belonged to Banu Hashim, a poor branch of the Quraysh tribe that dominated Mecca from the 500s. Orphaned early, raised by his uncle Abu Talib, he traded successfully and entered the service of the merchant widow Khadija bint Khuwaylid (about 554-619), fifteen years older, who married him when he was 25. In 610, in the month of Ramadan, he received his call, which tradition finds in Sura 96, opening with God's command to proclaim in the Lord's name. After more than ten years of opposition in Mecca he emigrated with his followers to Yathrib, later Medina (madinat al-nabi, 'the Prophet's city'); the hijra of 622 marks the break with the old tribal society (jahiliyya) and became the starting point of Islamic time-reckoning. Badr 624; the failed battle of Uhud the next year; peace with the Meccans at Hudaybiya in 628. In 630 he marched on Mecca, took the city and cleansed the Kaaba of idols; in 632 he made his last pilgrimage, the model for the rite, and died the same year. Fatima (about 605-633) married his cousin Ali ibn Abi Talib (about 597-661); A'isha (about 614-678), traditionally the source of 1,200 hadith. On his death the party of Ali (shi'at Ali) wanted Ali to lead; the other side held the community should choose, preferably from Quraysh, the later Sunni position; the Kharijites rejected any group's prior claim, and the Ibadis of Oman, North Africa and the East African coast are their last offshoot. Sources for his life: the Qur'an, the hadith collections edited in the 800s and 900s, and the sira biographies, oldest Ibn Ishaq's as transmitted by Ibn Hisham (died 827). Islam's ban on images covers in principle all depictions of the Prophet and other holy persons. Cited at: Muhammed i islamsk tradisjon.
Also cited in Muhammad and the Qur'an, Sunni, Shia, and Sufi.
- 13Peter J. Lu, Paul J. Steinhardt. Decagonal and Quasi-Crystalline Tilings in Medieval Islamic Architecture. Science 315, 1106-1110. 2007. verifiedThe conventional view: girih lines drafted directly with straightedge and compass. Claim: by 1200 girih were reconceived as tessellations of five equilateral tile types decorated with lines; by the 15th century, with self-similar subdivision, a nearly perfect quasi-crystalline Penrose pattern on the Darb-i Imam shrine, Isfahan, 1453. Tile outlines appear in a 15th-century Timurid-Turkmen scroll in the Topkapi Palace Museum. Limits they state: no evidence of matching rules; 11 mismatches in 3,700 Penrose tiles; the start was an arbitrary tile arrangement, so strictly not self-similar. 'Incomplete understanding.'
- 14Philip Ball. Islamic Tiles Reveal Sophisticated Maths. Nature news, 22 February 2007, doi:10.1038/news070219-9. 2007. verifiedLu has found no evidence that the tiles were actually made, though he speculates they served as templates. Scrolls show tiles of these shapes as conceptual building blocks. Lu conjectures avoidance of repetition was deliberate, while the makers were probably unaware of the mathematical consequences.
- 15Carol Bier. Taking Sides, But Who's Counting? The Decagonal Tomb Tower at Maragha. Bridges 2011: Mathematics, Music, Art, Architecture, Culture. 2011. verifiedCalls the periodicity of the Gonbad-e Qabud ornament a heated debate. Makovicky (1992) and Bonner (2003) legitimately claim prior discovery of these decagonal tilings and sub-grids; a technical comment by Makovicky and a response by the authors followed in Science. Whether the builders knew the mathematical significance remains unanswered.
- 16Chris Cambré. abstract concepts and practice. GeoGebra. verifiedA secondary summary, used because Cromwell's own papers are paywalled. Peter Cromwell, 'The Search for Quasi-Periodicity in Islamic 5-Fold Ornament' (Mathematical Intelligencer 31, 2009): the division rule shrinks shapes by a factor of about 8.47 each step, so repeated division is not workable in practice, and regular versus irregular tiling are modern categories. His 2016 Nexus Network Journal analysis of a spandrel at the Friday Mosque finds workers filling a set area pragmatically.
- 17muqarnas. Encyclopaedia Britannica. verifiedStalactite work: small niches or projecting prismatic forms in tiers, often joined by miniature arches. Prominent from the 12th century, at its height in the 14th and 15th. On door heads, niches, bracketing under cornices and minaret galleries; noted in the Alhambra. Earliest extant example at Tim, awkwardly built, perhaps derived from curved panels covering corners.
- 18Erik Johansson, Karolina Grundström, Hans Rosenlund. Street Canyon Microclimate in Traditional and Modern Neighbourhoods in a Hot Dry Climate: A Case Study in Fez, Morocco. PLEA 2001, The 18th Conference on Passive and Low Energy Architecture. 2001. verifiedTraditional Seffarine street: 1.4 m wide between 4-storey buildings, height-to-width ratio about 10. Modern street about 0.6. Before sunrise the traditional street is 2-4 C warmer; in early afternoon about 10 C cooler. Daily range about 6 C against about 20 C. In summer the traditional street was in the comfort zone and the modern extremely uncomfortable; in winter neither was, and the modern was better. Rooms open to the courtyard, not the street.
- 19K. Mousli, G. Semprini. Thermal Performances of Traditional Houses in Dry Hot Arid Climate and the Effect of Natural Ventilation on Thermal Comfort: A Case Study in Damascus. Energy Procedia 78, 2893-2898. 2015. verifiedAbstract read. Traditional houses of rooms around one or more courtyards give generally good comfort, especially in hot summers. Summer monitoring of air temperature, humidity, and air velocity in old Damascus with an occupant survey. The abstract gives no figures.
- 20BĀDGĪR. Encyclopaedia Iranica. verifiedWind catchers, built since antiquity from Pakistan to North Africa, channel wind from vents above the roof to rooms below. Yazd is 'the city of wind catchers'; towers there rise 30 cm to 5 m above the roof, vents on one to eight sides; the tallest, at Dowlatābād, Yazd, rises 33.35 m. Air cools as it descends and cools occupants by convection and evaporation. In still air, the sun-warmed tower draws cool humid air up from court and basement. Basements are slept in on summer afternoons and nights. On the Gulf, wet screens cool the air by evaporation.
- 21Historic City of Yazd. UNESCO World Heritage Centre. verifiedDesert city watered by qanats; each district is built on a qanat with a communal center. Earth is used for walls and for vaults and domes. Houses have courtyards below ground level serving underground areas.
- 22David E. Joyce. Euclid's Elements, Book I, Proposition 11. Clark University. verifiedTo draw a straight line at right angles to a given line from a point on it: mark equal distances either side, construct on them, and join.
Also cited in Laying Out a Star Pattern.
- 23David E. Joyce. Euclid's Elements, Book I, Proposition 9. Clark University. verifiedTo bisect a given angle: equal distances on the two sides, an equilateral construction on the joining line, and a line from the vertex.
Also cited in Laying Out a Star Pattern.