The Matmata Pit Dwellings Keeping The Tunisian Indigenous Past Alive

Matmata Troglodytes
Marina Denisova

Dug into the ground and in perfect unity with the Dahar highlands of Southern Tunisia, the Matmata troglodytes homes are an otherworldly architecture and travel experience as well as a testament to the country’s ancient past. During our escapade to Tunisia with Discover Tunisia, we visited the centuries-old networks of underground chambers and passageways to learn more about their cultural significance, captivating history, and uncertain future.

On the edge of the Sahara desert at an altitude of 600 meters, the Matmata is a cratered landscape punctuated by palm trees and olive groves, just 35 kilometers south of Tunis, the country’s capital. People have lived here for centuries and still do to this day, in underground structures hidden in the valleys of the mountain range Djebel Dahar. Invisible from a distance, the dwellings are popularly known as ‘troglodytes’ and are striking architectural remnants of the land’s ancient Berber past.

The troglodytes are striking architectural remnants of the land's ancient Berber past.

Named after one of the tribes that inhabited it, the village of Matmata features a plethora of sites still occupied by Amazigh people—‘Amazigh’ is another word for Berber, the indigenous inhabitants of North Africa; a minority group making up 2.5 percent of Tunisia’s current population. “Berber mountain villages are foundations that go far back in history, as evidenced by the Amazigh origins of many towns of the great south of Tunisia,” says Dr. Habib Belhedi during our visit to Matmata. Although his main profession is dentistry, he is a specialist of the region’s past and a well-known advocate for the preservation of Amazigh culture. “It is disputable as to when nomadic tribes decided to settle here,” he shares. Several estimates claim occupancy of caves in the region occurred between the 14th and the 15th century, though settlement could have occurred already in the 11th century, when Berbers sought shelter in the mountains, refusing to submit to the Arabs who had conquered the Tunisian land and enforced a policy of assimilation.


“With no stone or timber in the area, and relatively no water year-round, survival in the arid Matmata valley was hard,” he says. To escape the heat, the Berbers excavated pits and discovered layers of hard and soft earth about 2 meters apart which made digging by hand possible. “They dug pits through layers, and could easily excavate laterally into the slope to create cave-like dwellings. The clay is soft but becomes very hard in contact with the air; solid enough to provide homes for centuries,” explains Belhedi. “The process takes between six to eight months,” he adds.


For hundreds of years, the pits typically followed a standardized plan, carved out of the ground and open to the sky. “A typical troglodyte is made by digging a large circular pit in the ground. The patio is hollowed out first and forms the central, sunken courtyard, the depth of which varies between five and ten meters, while its diameter is between seven and 15 meters,” explains Belhedi. The courtyard is used as a communal area and stable, and often features a well for underground water supply. From it, a series of further excavations branch out, tunneling for a few meters before forming underground rooms. “All around it, small chambers are excavated, and communicate with each other by corridors and passageways. A second level can be added, with steps leading up to them; these are usually cisterns or storage-rooms,” he continues. Access to the troglodyte is granted through ladders or a large tunneled entrance. No bathroom or toilet are found within its structure.


“The main reason for the construction of these cave dwellings is climatic,” explains Belhedi. The troglodytes offer an escape from the heat of the nearby Sahara; their unique building method protects inhabitants from the fiery summer sun while retaining heat in the winter. “The clay-gypsum layers are isothermal; they ensure constant temperatures of around 20 degrees throughout the year”. The favourable soil conditions makes housing people and livestock possible, enabling self-sufficient systems. “Lacking basic conveniences such as electricity, the entire excavation is also whitewashed to capture as much bright light from the courtyard as possible,” adds Belhedi. The white doorways and walls are then engraved or painted with good luck charms, specifically three Berber symbols of Christian origin—a fish symbolizing the miracle of the loaves and fish, a hand print embodying the hand of god, and a zigzag of three peaks representing the trinity.


It is estimated that 15000 people once inhabited the troglodytes, with the number decreasing drastically since the French invasion in 1881 and the country’s independence in 1956. “Their existence remained unknown until 1967, when severe flooding brought it to the attention of the Tunisian government,” he says. In the following years, the above-ground settlement of Matmata, known as ‘Nouvelle Matmata’, or New Matmata, was built following a modernization policy by President Habib Bourguiba. “The village underwent a substantial rural depopulation with an abandonment of almost all troglodytic houses,” Belhedi tells us. Although some continued their lives in new underground homes—rebuilt on adjoining land and retaining the traditional structures as stables—most families emigrated to the neighboring cities to seek jobs, leaving the traditional way of life.

In recent decades, Berber heritage has experienced a revival.

The pit dwellings became a subject of global fascination after their popularization in Hollywood’s Star Wars series starting in 1977, when a large troglodyte turned into a hotel was chosen as the set for Luke’s family home. The Blockbuster hit sealed the fate of this Berber land: the Hotel Sidi Driss and the many Matmata cave homes are now a site of pilgrimage for fans of the film. In recent decades, many dwellings have been restored and transformed into guesthouses or museums, in an attempt to supply the local economy and preserve the unique Berber architecture and heritage. “Tunisia’s Beber community has largely been ignored, especially silenced during the long years of dictatorship of Zine El Abidine Ben Ali,” Belhedi points out. After the 2011 Arab Spring revolution, Berber heritage has experienced a revival, with Amazigh people enjoying a new lease of life.


Today, some families are stubbornly clinging to their unique cultural heritage and still live in their underground households, working their olive farms and baking Tabouna bread. Most of them sustain themselves by occasionally accepting tips from tourists who want to visit their homes; selling jars of distinctive rosemary-flavored honey with oil, and original Oudref rugs to visitors.

Tourism has proved to be a mixed experience for Matmata, forever changing the local way of life. While it has helped the economy, the pilgrimage, alongside the country’s drive for modernity and insistence on Arabization, threatens the future of the original troglodytes, which are being progressively altered in favour of modern structures. The cave houses are on the verge of disappearing. “Only a few men still know how to dig and maintain these dwellings. Together with Berber language, dress, and costumes, these homes serve as a link to an ancient past of the land. It is not folklore, but culture. The Berber way of life should be preserved, while its culture shown to the world,” Belhedi concludes.

– This story was produced in collaboration with Discover Tunisia

All images © Marina Denisova for IGNANT production 

Subscribe To Our Newsletter