The Lars family homestead (see photos) from Star Wars Episode IV was filmed in the Hotel Sidi Driss in the mountain town of Matmata, Tunisia.
Many scenes from Star Wars: The Phantom Menace were filmed at Ksar Ouled Soltane, a fortified granary near Tataouine in Tunisia.
The multi-layered slave quarters in Star Wars Episode I were filmed at the Hotel Ksar Hadada, a few miles northwest of Tataouine. Anakin Skywalker's childhood home is a humble dwelling within this slave complex. Like the Lars family homestead, it combines primitive construction with high technology. The bedroom and kitchen are cave-like spaces with ragged windows and storage nooks.