Ksar Ouled Soltane (Arabic: قصر أولاد سلطان) is a fortified granary, or ksar, located in southern Tunisia. The ksar is spread out over two courtyards, each of which has a perimeter of multi-story vaulted granary cellars, or ghorfas. Like other ksour created by North African Berber communities, Ksar Ouled Soltane is located on a hilltop, to help protect it from raiding parties in previous centuries.
Ksar Ouled Soltane is now a tourist destination, with visitors coming to see its well-preserved granary vaults. It is one of three ksour around Tataouine to represent the Slave Quarters Row of Mos Espa in Star Wars: Episode I The Phantom Menace, where Anakin Skywalker lived as a boy.