The story here
What happened at Ksar Hadada — northwest filming corner?
For Star Wars: Episode I – The Phantom Menace (1999), the porches and the street at the northwest corner of Ksar Hadada became the slave quarters of Mos Espa, in scenes with Qui-Gon and Shmi. The main courtyard served only as a model for another set. The film’s podrace canyon is the Maguer Gorge / Sidi Bouhlel canyon, its Mos Espa town stood on the Mos Espa main set, Eriguet dunes, and Ksar Ommarsia / Ksar Médenine gives Anakin’s hovel.
Ksar Hadada, in the village centre of the Tataouine Governorate, is on an official visitor route, though access to the northwest corner should be checked locally.

