Ghardaia — The Pentapolis of the M’Zab Valley, a Thousand Years of Ibadi Towns
Ghardaia is the main town of the M’Zab Valley, five Ibadi towns a thousand years old. White houses climb a hill above a palm grove, in the middle of the Sahara.
Ghardaia sits in the M’Zab Valley, in the northern Sahara of Algeria, about six hundred kilometres south of Algiers, with a palm grove, a market and a hill of white houses that is one of the most famous views in North Africa. The town is the main town of the Pentapolis, a chain of five fortified towns built by the Ibadis between 1012 and 1350, and it is the centre of the M’Zab Valley World Heritage property, ref 188, inscribed in 1982. Ghardaia is a town for visitors who want the Sahara and the history of Islam together, with a town that is still lived in, and with a culture that is a thousand years old.
Quick Facts
- Place: Ghardaia, the main town of the M’Zab Valley, in the northern Sahara of Algeria
- Population: About ninety-three thousand, in the 2008 census, up from about eighty-eight thousand in 1998
- Coordinates: Thirty-two degrees twenty-nine minutes north, three degrees forty minutes east
- Height: About five hundred and seventy-two metres above sea level
- Area: About five hundred and ninety square kilometres
- Distance from Algiers: About six hundred kilometres to the south, about seven hours by road
- Best months: October to April, for the cool air and for walking the towns
- Main sights: The old town, the market square, the palm grove, the five ksour of the valley
- UNESCO: Part of the M’Zab Valley, ref 188, inscribed in 1982, with criteria (ii), (iii) and (v)
- Wikidata: Q622841
Geography of Ghardaia
Ghardaia sits in the M’Zab Valley, a valley of the northern Sahara, about six hundred kilometres south of Algiers, with a wadi, a palm grove and a hill of white houses. The valley is a depression in the desert, with a wadi that runs through it, and with a palm grove that is watered by wells, and with five towns that stand on the hills above the grove, each with a mosque, with a market and with houses of white and ochre. The valley covers about seventy-five square kilometres, with about three hundred and sixty thousand people, in 2005, and it is the most populated oasis in the Sahara.
The town of Ghardaia is the main town of the valley, and it stands on a hill above the palm grove, with a mosque at the top, and with houses that climb the hill in terraces, and with a market square at the foot of the hill. The houses are built of stone and of earth, in white and in ochre, with flat roofs and with small windows, and they are built to keep out the heat of the desert, with thick walls and with courtyards that are cool in the summer. The town is a place of narrow lanes, of stairs and of a quiet that is the character of the M’Zab, and it is best seen on foot, with a walk that climbs the hill to the mosque, and with a view of the palm grove below.
The palm grove of Ghardaia is the green heart of the valley, a grove of date palms, of figs and of pomegranates, watered by wells that are deep and by a system of foggaras, of underground channels, that brings water from the hills. The grove is a place of gardens, of walls and of a green that is the opposite of the desert, and it is where the families of the town have their gardens, with a house, with a well and with a plot of land, and where they go in the summer, to escape the heat of the town. The grove is best seen in the morning, when the air is cool and the light is low, and when the birds are loud in the palms.
The desert sets the weather of Ghardaia, and the palm grove softens it. The summer brings heat above forty degrees, with a sun that is white at noon and a wind that carries fine sand from the south, and the nights drop fast, by twenty degrees or more, so that the mornings are cool even in July. The winter is mild, at about fifteen to twenty degrees, with a rain that comes in a few short storms a year, and with a sky that is clear for months on end. Inside the grove the air is cooler by several degrees, because the palms shade the ground and the wells keep the soil damp, and the town itself holds the heat of the day in its stone walls long after sunset.
The five ksour of the valley are the five towns of the Pentapolis, each built on a hill above the palm grove, each with a mosque, with a market and with houses that are white and ochre. The five are El Atteuf, founded in 1012, Bounoura, Melika, Ghardaia, founded in 1048, and Beni Isguen, and they were built between 1012 and 1350, by the Ibadis, a community of Muslims who came to the valley from Tahert, after their city was destroyed in 909. The five towns are the heart of the M’Zab, and they are the reason the valley is a World Heritage property, with a plan that is a thousand years old and with a culture that is still alive.
The water of the valley comes from below, not from above. The foggaras are underground channels, dug by hand over centuries, that carry water from the hills to the palm grove, with a slope so gentle that the water flows without a pump, and with wells that are sunk along the channel to clean it and to draw from it. The system is a work of the community, with a water master who divides the water between the gardens, and with a law that is a thousand years old, and it is the reason the grove is green in a desert that has almost no rain. The dates of the grove are the crop of the valley, above all the deglet nour, the date of light, which is sold across Algeria and exported to Europe, and the harvest in the autumn is the busiest time in the grove.

A street in the old town of Ghardaia with a view of the great mosque — CC BY-SA 4
History of Ghardaia
The history of Ghardaia begins with the Ibadis, a community of Muslims who lived in Tahert, a city in the north of Algeria, and who left their city after it was destroyed in 909, and who came south to the M’Zab Valley, to build new towns in the desert. The Ibadis were a community of scholars and of traders, with a faith that was strict and with a life that was simple, and they built their towns on the hills above the palm grove, with a mosque at the top, with a market at the foot, and with houses that were built to keep out the heat and to keep the community together.
El Atteuf was the first of the five towns, founded in 1012, and it was the model for the towns that followed, with a mosque, with a market and with houses that were white and ochre. Ghardaia was founded in 1048, and some sources give 1053, and it became the main town of the valley, with a market, with a mosque and with a hill of houses that is the most famous view in the M’Zab. The five towns were built between 1012 and 1350, and they grew as centres of trade, with caravans that ran from the north to the south, and with a market that was the centre of the valley, and with a culture that was a thousand years old.
The towns of the M’Zab were built to a plan that is still visible today, with a mosque at the top of the hill, with a market square at the foot, and with houses that climb the hill in terraces, and with a palm grove below, and with a cemetery outside the walls. The plan was a plan of a community, with a mosque for prayer, with a market for trade, and with houses for the families, and with a grove for the gardens, and it was a plan that was designed to keep the community together, and to keep the desert out, and it is the reason the towns are a World Heritage property, with a plan that is a thousand years old.
The M’Zab Valley was inscribed on the World Heritage List in 1982, as ref 188, with criteria (ii), (iii) and (v), and it is the most important historic area in the Sahara. The property covers about six hundred and sixty-five hectares, with the five towns, with the palm grove and with the valley, and it is a place where the history of the Ibadis is still alive, with a community that still lives in the towns, and with a culture that is still practised, with a language, with a faith and with a life that is a thousand years old.
The town of today is a place of white houses, of a market and of a palm grove, and it is the main town of the M’Zab, with a population of about ninety-three thousand, in the 2008 census. The town is visited by Algerians more than by foreigners, with families who come for the market and for the grove, and with visitors who come for the towns and for the desert, and it is a town for visitors who want the Sahara and the history of Islam together, with a town that is still lived in, and with a culture that is a thousand years old. The towns of the M’Zab have influenced the architects of the twentieth century, among them Le Corbusier, Pouillon and Ravereau, who came to the valley to study the plan of the towns, and who took its lessons to the cities of Europe.
In the twentieth century, the valley came under French rule, when the French took the M’Zab in 1882, and the towns kept their community and their customs, with a French administration that left the Ibadi councils in place. After the independence of Algeria in 1962, the valley became a part of the new country, and the towns grew, with new houses, with new roads and with a population that rose fast. In the same century, the architects of Europe came to the valley to study its plan, among them Le Corbusier, who visited in the 1930s, and Fernand Pouillon and Andre Ravereau, who wrote about the towns and took their lessons, the thick walls, the courtyards and the shade, to the cities of Europe.

Ghardaia in an old photograph — CC BY 4
Travel to Ghardaia
Fly, and the desert does the work for you. The plane from Algiers takes about an hour and a quarter, and it lands at a small airport south of the town, with a view of the Sahara from the window on the way down, and a taxi into the old town takes about twenty minutes. The road is the slower choice, about seven hours from Algiers, but it is the better one if you want to see the change, from the hills of the north, through the high plains, to the first palms of the M’Zab. Buses run the same road, and they are cheap, but they are slow, and they stop in every town on the way.
The old town is the first sight of Ghardaia, and it is best visited in the morning, when the air is cool and the lanes are quiet, and when the light is low on the white houses. The old town is a place of narrow lanes, of stairs and of a quiet that is the character of the M’Zab, and it is best seen with a guide, because the lanes are a maze and the town is a place of a community, and a guide can show the mosque, the market and the houses, and can explain the plan of the town. A visitor should allow half a day for the old town, with a guide, and should dress modestly, because the town is a place of a community, and should keep quiet, because the town is still lived in.
The market square is the second sight of the town, and it is best visited in the morning, when the market is at its liveliest, with stalls of dates, of figs and of crafts, and with a crowd that is the life of the town. The market is the centre of the valley, with a square that is large and with arcades that are cool, and with a trade that runs from the north to the south, and it is where visitors can buy the dates of the grove, and the crafts of the M’Zab, and where they can see the life of the town at its most vivid. A visitor should allow an hour for the market, and should bring cash, because the stalls do not take cards, and should bargain, because the price is a matter of talk.
Walk the grove with a guide, and the walls start to make sense. Each garden is a walled plot, with a house, a well and a plot of land, and the walls are high because the gardens are private, and the paths between them are narrow because the land is precious. The guide will show you the foggara, the underground channel that feeds the gardens, and the well where the water is drawn, and the date palms, the figs and the pomegranates that grow in the shade. The walk takes about two hours, and it is best in the afternoon, when the light comes sideways through the palms, and you should bring water, because the grove has no shops.
Visitors with extra days often continue south to Timimoun, the red oasis town of the Sahara, or north to Constantine, the city of bridges, or west to Tlemcen, the old Andalusian town near the Moroccan border.
The five ksour are the best day trip from Ghardaia, with a tour that runs from the town to the other four towns of the valley, each with a mosque, with a market and with houses that are white and ochre. The tour takes a full day, with a guide, and with a car, and it is the best way to see the valley, because the towns are far apart and the roads are rough, and because a guide can explain the plan of each town, and the history of the Ibadis. A visitor should allow a full day for the five towns, and should book a guide in advance, because the towns are a place of a community, and a guide is needed to visit them.
Notable Places in Ghardaia
The Old Town of Ghardaia
The old town is best seen from below, at the edge of the palm grove, where the hill rises in front of you in a single sweep. The houses climb in terraces, white and ochre, with flat roofs and small windows, and the mosque stands at the top, with a minaret that is a square tower, not a round one, and with a view that runs over the whole valley. Climb the lanes slowly, because the hill is steep and the steps are worn, and stop at the top to look down, because the view from the mosque is the most famous in the M’Zab, with the grove below and the desert beyond. Go with a guide, because the lanes are a maze and the town is a living community, not a museum.
The Market Square
The square is a roofed hall as much as a market, with arcades that keep the sun off and with a floor of stone that stays cool even at noon. The stalls are set out by trade: dates and figs in one corner, pottery and brass in another, and the woven blankets of the M’Zab, in red and white, hung where the light falls on them. The bargaining is part of the visit, and it is done slowly, over tea, because the price is a matter of talk and of respect, not of haste. Bring cash, because the stalls do not take cards, and buy the dates, because the deglet nour of the grove is the best in Algeria, and because it travels well.
The Palm Grove
The grove is a city of gardens, and it is larger than the town itself. Behind its walls lie hundreds of plots, each with a house, a well and a stand of palms, and with a second layer of figs and pomegranates growing in the shade below, and a third layer of vegetables at the ground. The water comes from the foggaras, the underground channels, and it is shared by a law that is a thousand years old, with a water master who opens and closes the channels by the hour. The grove is the reason the valley can feed itself, and it is the green that makes the white of the town shine, and it is best walked in the late afternoon, when the light is low and the birds are loud.
El Atteuf
El Atteuf is the oldest of the five towns of the M’Zab, founded in 1012, and it is the model for the towns that followed, with a mosque, with a market and with houses that are white and ochre. The town stands on a hill above the palm grove, with a mosque at the top, and with a view of the valley, and it is the place where the history of the M’Zab began, with a community that came from Tahert after their city was destroyed in 909. A visitor can reach El Atteuf by car from Ghardaia in about twenty minutes, and should go with a guide, because the town is a place of a community.
Beni Isguen
Beni Isguen is the most traditional of the five towns, a town that is closed to visitors after dark, and that keeps the customs of the Ibadis more strictly than the others. The town stands on a hill above the palm grove, with a mosque, with a market and with houses that are white and ochre, and it is a place of a community that is a thousand years old, with a life that is simple and with a faith that is strict. A visitor can reach Beni Isguen by car from Ghardaia in about fifteen minutes, and should go with a guide, and should dress modestly, and should keep quiet, because the town is a place of a community.
Frequently Asked Questions
Is Ghardaia part of a UNESCO site?
Yes, it is the main town of the M’Zab Valley, ref 188, inscribed in 1982.
How do I get to Ghardaia from Algiers?
Fly in about an hour and a quarter, or drive south about six hundred kilometres in seven hours.
Can I visit the five towns of the M’Zab?
Yes, take a guide for a full day tour, since the towns are a living community.
When is the best time to visit Ghardaia?
October to April is best, for the cool air and for walking the towns.
Is Ghardaia safe for visitors?
Yes, it is a quiet town, and visitors should go with a guide and dress modestly.
What is the palm grove of Ghardaia?
It is a grove of date palms and gardens, watered by wells and by underground channels.
Verified
- Ghardaia is the main town of the M’Zab Valley, ref 188 on the UNESCO World Heritage List, inscribed in 1982, with criteria (ii), (iii) and (v); the property covers 665.03 hectares — UNESCO, checked 24 November 2026.
- The five ksour were founded between 1012 and 1350; El Atteuf was founded in 1012; Ghardaia was founded in 1048, with some sources giving 1053; Tahert was destroyed in 909 — history sources, checked 24 November 2026.
- Ghardaia had a population of 93,423 in the 2008 census, and 87,599 in the 1998 census; the town covers about 590 square kilometres, at an elevation of 572 metres — Algeria census and geography sources, checked 24 November 2026.
- The M’Zab Valley covers about 75 square kilometres, with about 360,000 people in 2005; Ghardaia lies about 600 kilometres south of Algiers — geography sources, checked 24 November 2026.
- Ghardaia lies at thirty-two degrees twenty-nine minutes north, three degrees forty minutes east, inside the M’Zab Valley property, so the distance to the property is zero — coordinates verified live 24 November 2026.
Sources
- M’Zab Valley — UNESCO (https://whc.unesco.org/en/list/188/) — checked 24 November 2026.
- Ghardaia — Wikipedia (https://en.wikipedia.org/wiki/Gharda%C3%AFa) — checked 24 November 2026.
- M’Zab Valley — Wikipedia (https://en.wikipedia.org/wiki/M%27Zab) — checked 24 November 2026.
- Ghardaia — Wikidata (https://www.wikidata.org/wiki/Q622841) — checked 24 November 2026.
- Ghardaia — Rough Guides (https://www.roughguides.com/algeria/ghardaia/) — checked 24 November 2026.
Unverified
- The exact founding year of Ghardaia, because sources give 1048 and some give 1053.
- The exact population of the M’Zab Valley today, because the figure of about three hundred and sixty thousand is from 2005.
- The exact number of visitors to the M’Zab Valley, because no official count is published.
Illustrations
- Hero: Ghardaia. Free image: https://upload.wikimedia.org/wikipedia/commons/d/db/Ksar_Ghardaia_place_march%C3%A9_1.jpg — CC BY-SA 4.0.
- In body, mosque: A street in the old town of Ghardaia with a view of the great mosque. Free image: https://upload.wikimedia.org/wikipedia/commons/3/3c/Ghardaia_rue.jpg — CC BY-SA 4.
- In body, view: Ghardaia in an old photograph. Free image: https://upload.wikimedia.org/wikipedia/commons/d/d1/Ghardaia_1955_-_00.jpg — CC BY 4.
