Tataouine Governorate · Tunisia
Matmata: The Underground Village Where Star Wars Was Born
Berber families in southern Tunisia have long carved their homes into pits dug deep into the earth, a design later immortalized as Luke Skywalker's childhood home in Star Wars.

In the arid hills of southern Tunisia, the Berber village of Matmata hides much of its architecture below ground. Rather than building conventional houses atop the harsh, sun-scorched terrain, generations of local Amazigh families dug large circular pits several meters deep directly into the soft sandstone earth, then carved horizontal rooms into the surrounding walls to create naturally insulated homes, cool in summer and warm in winter, arranged around a shared open-air courtyard. This distinctive troglodyte architecture, likely developed centuries ago as a practical response to extreme desert temperatures and periodic conflict in the region, gained sudden global fame in 1977 when director George Lucas chose one of these underground homes as the filming location for Luke Skywalker's family home in the original Star Wars, permanently linking this remote Tunisian village to one of cinema's most famous fictional universes.
Digging Down to Beat the Heat
Matmata's underground homes, known as troglodyte dwellings, are built using a technique in which builders excavate a large circular or rectangular pit, sometimes six meters deep and ten or more meters across, directly into the region's soft, easily carved sandstone. Once the central pit is dug, additional rooms, bedrooms, kitchens, storage spaces, and animal pens, are tunneled horizontally into the surrounding rock walls, all opening onto the shared central courtyard, which serves as an open-air living space and lets in natural light and ventilation.
This design proved remarkably effective at moderating southern Tunisia's extreme climate, where surface temperatures can soar well above 40 degrees Celsius in summer. The thick surrounding rock and earth provide natural insulation, keeping interior temperatures significantly cooler during the day and warmer at night compared to conventional above-ground construction, a passive cooling strategy that required no mechanical systems and predates modern insulated architecture by many centuries.
Berber Origins and Historical Context
Matmata is historically home to Amazigh, or Berber, communities who are believed to have adopted underground dwelling partly as a defensive strategy, since pit homes were far less visible from a distance than conventional structures, offering some protection during periods of regional conflict and raids. The exact age of the technique is debated among historians, with some traditions suggesting it stretches back many centuries, though the majority of dwellings still inhabited today were likely built or substantially renovated within the past 200 years.
The broader region of southern Tunisia, encompassing Matmata and neighboring villages, has long been home to distinct Berber architectural traditions beyond just underground pit houses, including fortified granary structures called ksour, built from stacked stone chambers, that similarly reflect adaptations to the area's arid climate and historical need for defensible storage of grain and valuables.
Star Wars and the Tourism Boom
In 1977, filmmakers working on George Lucas's original Star Wars selected Matmata as a filming location for scenes depicting Luke Skywalker's home on the desert planet Tatooine, itself named in reference to the nearby Tunisian town of Tataouine. A local underground home, later converted into a hotel called Sidi Driss, served as the specific set for the Lars family homestead, and the hotel has preserved much of its Star Wars-era set dressing, allowing visitors to sleep in rooms that appeared in the film decades later.
The connection to Star Wars transformed Matmata from a relatively obscure Berber village into an internationally recognized tourist destination, drawing fans of the franchise alongside travelers interested in traditional Berber architecture and culture. Additional Star Wars filming locations exist throughout the surrounding Tunisian desert, and a dedicated fan tourism circuit has developed connecting Matmata to other prequel and original trilogy filming sites scattered across the country's south.
A Changing Way of Life
Despite the tourism attention, many of Matmata's traditional pit homes have gradually been abandoned in favor of conventional above-ground housing, as younger generations seek modern amenities like reliable plumbing, electricity, and easier renovation options that underground dwellings, carved into solid rock, cannot easily accommodate. Government housing programs beginning in the mid-20th century encouraged relocation to more conventional housing developments outside the historic underground village.
Still, a number of pit homes remain inhabited today, some by families who have lived in them for generations, while others have been converted into guesthouses and small hotels catering specifically to tourists interested in experiencing troglodyte architecture firsthand. Local advocates and some heritage organizations have expressed interest in better preserving the remaining underground homes, viewing them as an important record of Berber ingenuity and a distinctive architectural tradition increasingly at risk of disappearing as the village modernizes.
Fun facts
- Matmata's pit homes can reach six meters deep and ten or more meters across.
- Luke Skywalker's childhood home in Star Wars was filmed at Matmata's Sidi Driss hotel, still operating today.
- The name Tatooine references the nearby Tunisian town of Tataouine.
- Underground design keeps interiors cooler in summer and warmer in winter without mechanical systems.
- Many pit homes have been abandoned for modern housing, though some remain family-inhabited or run as guesthouses.
Gallery


Sources
Other interesting places
View all →Featured lists
View all lists →Compare cities, side by side
Choose any 2 cities →Text on this page is original Terralocate editorial. Background facts compiled from the public sources listed above. Images via Wikimedia Commons under their respective licenses (typically CC BY-SA or public domain).








