Built in the 15th century, the ksar (fortified granary) is one of the best of its kind left. It stands on a hilltop, which protected it from invaders. The Ksar Ouled Soltaine gained fame as the slave quarters where Anakin Skywalker lived in Star Wars: The Phantom Menace.