13 places in 6 countries · updated 14 October 2026
In short: By our ranking, the most beautiful mosques in Africa are Koutoubia Mosque (Morocco), Great Mosque of Djenné (Mali) and al-Azhar Mosque (Egypt). The list covers 13 mosques in 6 countries. Egypt has the most, with 4. Last updated 14 October 2026.
Islam reached North Africa in the 7th century and crossed the Sahara with the caravans soon after, and the mosques it left behind belong to two great traditions. Along the Mediterranean, dynasties from the Aghlabids to the Mamluks and Marinids built in stone and brick, with square minarets, forests of columns and walls dressed in carved plaster, cedar and glazed tile. South of the desert, in the Sahel, builders worked in sun-dried mud, shaping massive walls bristling with wooden beams that serve as scaffolding when the plaster is renewed.
In Morocco, the minaret of Marrakesh's Koutoubia Mosque set the model for Almohad towers, and the Hassan II Mosque in Casablanca, finished in 1993, stands partly over the Atlantic beneath one of the tallest minarets in the world. Fez keeps two jewels of Marinid craftsmanship, the Bou Inania and Al-Attarine madrasas. The Great Mosque of Kairouan in Tunisia, founded in the first decades of Islam in the region, became a model for mosques across the Maghreb.
Cairo shows three eras side by side: the vast arcaded courtyard and spiral minaret of the Mosque of Ibn Tulun, the monumental Mamluk Mosque-Madrasa of Sultan Hasan, and the Ottoman domes of the Muhammad Ali Mosque on the Citadel. In Mali, the Great Mosque of Djenné is the largest mud-brick building in the world, and Timbuktu's Djinguereber Mosque dates to the time of Mansa Musa. Niger's Great Mosque of Agadez lifts a tapering earthen minaret over the town, and the dry-stone mosque of Chinguetti in Mauritania keeps watch over an old caravan city.
In this list
| # | Place | Type | Country | UNESCO |
|---|---|---|---|---|
| 1 | Koutoubia Mosque | Mosque | Morocco | ✓ |
| 2 | Great Mosque of Djenné | Mosque | Mali | ✓ |
| 3 | al-Azhar Mosque | Mosque | Egypt | |
| 4 | Hassan II Mosque | Mosque | Morocco | |
| 5 | Great Mosque of Kairouan | Mosque | Tunisia | ✓ |
| 6 | Mosque of Ibn Tulun | Mosque | Egypt | ✓ |
| 7 | Djinguereber Mosque | Mosque | Mali | |
| 8 | Mosque-Madrasa of Sultan Hasan | Mosque | Egypt | |
| 9 | Great Mosque of Agadez | Mosque | Niger | |
| 10 | Bou Inania Madrasa, Fez | Mosque | Morocco | |
| 11 | Al-Attarine Madrasa | Mosque | Morocco | |
| 12 | Muhammad Ali Mosque | Mosque | Egypt | |
| 13 | Chinguetti Mosque | Mosque | Mauritania |
Morocco · 1.2 km from Marrakesh31.624° N 7.994° W

The mosque was founded in 1147 by the Almohad caliph Abd al-Mu'min, just after he took the city from the Almoravids. A first mosque was finished around 1157, and almost immediately a second, larger one was built beside it ; both are oriented well away from the true direction of Mecca. The present building, of about 1158 to 1195, has 17 parallel naves on more than a hundred pillars, a plan that looks back to the Great Mosque of Córdoba, with five elaborate muqarnas cupolas. The remains of the first mosque have been excavated on its northwest side and can be seen on the northwest side. The name comes from the kutubiyyin, the booksellers who once traded in the surrounding streets.
Did you know? In the first mosque, a screen for the caliph rose from the floor by itself and the pulpit rolled out unaided, devised by an engineer from Málaga.
Mali · 0.8 km from Djenné13.905° N 4.556° W

Because mud walls of this size cannot survive an unrepaired rainy season, the whole town turns out every April for the crépissage: women and girls haul water from the river to mix fresh clay, men and boys climb the walls to trowel it on, and griots — traditional musicians and storytellers — perform for the workers throughout the one-day event. It functions as much as a communal festival as a maintenance job, and it's the reason the mosque has survived, largely unchanged in form, for well over a century.
Did you know? The interior is a forest of ninety massive rectangular earthen pillars, so dense that they block most views across the prayer hall.
Egypt · 1.6 km from Cairo30.046° N 31.263° E

The building is a layered record of a thousand years of Cairo. Its heart is a marble-paved courtyard framed by arcades of keel-shaped arches with carved stucco medallions, laid out under the Fatimid caliph al-Hafiz in the 12th century, and beyond it a hypostyle prayer hall whose forest of marble columns was gathered from older Pharaonic, Roman and Coptic buildings. Saladin's Sunni Ayyubid dynasty neglected the former Shia foundation, but the Mamluk sultans restored congregational prayer in 1266 and enriched it with madrasas, domes and minarets.
Did you know? It was the first mosque built in Cairo, the city later called the City of a Thousand Minarets.
Morocco · 1.5 km from Casablanca33.607° N 7.633° W

French architect Michel Pinseau designed it, and the construction firm Bouygues built it in seven years, breaking ground in July 1986 and finishing for an inauguration on 30 August 1993 — a tight schedule for a project this scale, driven partly by the king's wish to see it completed in his lifetime. Some of the more theatrical details reinforce the water theme rather than just gesture at it: part of the hall stands on a platform over the Atlantic, and a retractable roof can slide open to the sky on significant occasions.
Did you know? A laser at the top of the 210-metre minaret shines toward Mecca at night and can be seen up to about 30 kilometres away.
Tunisia · 0.4 km from Kairouan35.681° N 10.104° E

From outside the mosque looks like a fortress: a long, slightly irregular enclosure of honey-coloured stone, about 127 metres on its longer sides, braced by heavy buttresses. Inside opens a vast marble-paved courtyard, gently sloped so that rainwater drains to a central collector and on into cisterns below. At the north end rises the minaret, a massive square tower of three tapering storeys about 31.5 metres high, often described as the oldest minaret still standing in the Islamic world. Its plain, almost military bulk has become the image of the city.
Did you know? The minaret rests on a square base about 10.7 metres wide, and 129 steps climb through its interior.
Egypt · 2.6 km from Cairo30.029° N 31.250° E

Its style came from Iraq. Ibn Tulun had spent much of his early career in Samarra, the Abbasid capital on the Tigris, and the mosque repeats Samarra's language: walls of red brick faced with plaster, broad pointed arches resting on massive piers rather than columns, and bands of carved stucco with floral and geometric patterns running around the arches and the 128 windows. An outer enclosure, the ziyada, wraps the mosque on three sides, once holding washrooms and even a clinic, and isolates the sanctuary from the noise of the city. The parapets are crowned with an openwork cresting whose shapes are often compared to a row of linked human figures.
Did you know? When an Abbasid army razed Ibn Tulun's capital al-Qata'i in 905, it spared only the mosque, for its religious role, and the adjoining governor's palace.
Mali · 0.9 km from Timbuktu16.771° N 3.010° W

The mosque is traditionally attributed to Mansa Musa, the ruler of the Mali Empire, who is said to have commissioned it around 1325–1327 after his celebrated pilgrimage to Mecca. Tradition also credits the design to Abu Ishaq al-Sahili, a poet from Granada whom Musa brought back with him; the 14th-century historian Ibn Khaldun recorded that he was paid 12,000 mithqals of gold dust. Modern historians are sceptical, noting that the building's form grows out of Saharan mosques and local West African building traditions rather than Andalusian models. Inside are three courtyards, two minarets and twenty-five rows of pillars running east to west, with room for some 2,000 worshippers.
Did you know? The name comes from the local Songhay language, Koyra Chiini, and means simply the great mosque.
Egypt · 2.4 km from Cairo30.032° N 31.257° E

The way in is through a portal 38 metres high, turned slightly outward so that it faces the old road from the Citadel. Its muqarnas hood drips like a frozen honeycomb, and its decoration shows influences from Seljuk Anatolia; look closely and you will see panels left unfinished, the carving stopping mid-pattern, because work ended with the sultan's murder in 1361. A dim, angled passage then opens without warning into a vast courtyard ringed by four towering vaulted iwans. In the corners sit four separate colleges, one for each Sunni school of law, and the huge qibla iwan carries a band of monumental Kufic script beneath its vault.
Did you know? Funds came partly from the confiscated estate of the wealthy amir Shaykhu and partly from heavy extortion of the sultan's subjects.
Mosquée d'Agadez
Niger · 2.5 km from Agadez16.974° N 7.988° E

Agadez grew up in the fifteenth and sixteenth centuries, when the Sultanate of Aïr was established and Tuareg groups settled within the town, keeping the outlines of their old encampments. The irregular street plan that resulted survives today, and the historic centre, a crossroads of the trans-Saharan caravan trade, is made up of eleven quarters of earthen houses around a group of palaces and religious buildings. In 2013 it was inscribed on the UNESCO World Heritage List as the Historic Centre of Agadez.
Did you know? The wooden beams bristling from the minaret are built-in permanent scaffolding: they carry the platforms used when the community renews the mud coating.
Morocco · 1.9 km from Fez34.062° N 4.983° W

Inside, the building is a demonstration of everything Marinid craftsmen could do. Around a marble-paved courtyard with a basin for ablutions, the walls are layered in the three materials of Marinid decoration: glazed zellij mosaic in geometric patterns, carved stucco as fine as lace, and carved cedar wood, darkened by time to the colour of honey. Student rooms open off galleries on two floors. The prayer hall is reached across little bridges over a canal that runs through the building, fed by a branch of the river of Fes, and its windows are filled with coloured glass set in stucco grilles.
Did you know? The madrasa's founder, Sultan Abu Inan Faris, seized power from his own father and was assassinated in 1358, aged about 31.
Morocco · 2.8 km from Fez34.065° N 4.974° W

Fes el Bali, the old walled city of Fez, grew around the Qarawiyyin Mosque, for centuries the chief centre of learning in Morocco, and its medina is today a World Heritage Site. The Marinid sultans, who ruled from Fez in the 13th to 15th centuries, built several madrasas close to the Qarawiyyin to lodge students — many of them poor and from distant towns — and to win over the city's scholars. Al-Attarine was commissioned by Sultan Abu Sa'id Uthman II and built between 1323 and 1325; according to the chronicle Rawd al-Qirtas, the sultan himself attended the laying of the foundations together with the city's ulema.
Did you know? The calligraphic band running around the courtyard is executed on sgraffito-style tiles, beneath further inscriptions carved in stucco.
Egypt · 2.8 km from Cairo30.029° N 31.260° E

Inside, the prayer hall is a near-square of about 45 by 46 metres under a central dome 21 metres across that rises to 52 metres. Under the ring of half-domes that buttress the centre, the space opens up in one sweep, in the manner of the Istanbul models, with painted and gilded ornament overhead and a pale veneer of stone below. That veneer is the other signature of the building: the lower walls and the courtyard are faced with alabaster, a choice Muhammad Ali is said to have insisted on to revive a declining Egyptian quarrying trade. The courtyard beyond, roughly 55 by 57 metres, is ringed by domed arcades.
Did you know? During the 1930s rescue the main dome was taken down from February 1935, with some 650 tons of steel scaffolding erected inside the building.
Mauritania20.463° N 12.367° W

The mosque is built from split stone laid without mortar and bound with clay, and its roof rests on palm-trunk beams carried by stone piers. Inside, a prayer hall of four aisles opens onto a courtyard, and the qibla wall facing Mecca holds a pair of niches, one for the mihrab and one for the minbar, an arrangement found in many mosques of the region. Decoration is almost entirely absent. That plainness follows the strict Maliki tradition associated with the Almoravid movement, which shaped religious life across the western Maghreb and gave the old town its spare character. It remains an active place of worship.
Did you know? The ostrich-egg finials are said to recall a time when the land around Chinguetti was green enough for ostriches to roam.
Places are chosen for how they look, not for how famous they are: each one has its own description and a photograph credited to its author. The order is a single world ranking that weighs the beauty of the place in curated photography together with how widely it is documented — the number of language editions of its encyclopedia article and how often that article is read in a year. The list is rebuilt as places are added, so the order and the counts on this page are always current.