Flexible goal-driven orientation requires that the position of a target be stored, especially in case the target moves out of sight. The capability to retain, recall and integrate such positional information into guiding behaviour has been summarized under the term spatial working memory. This kind of memory contains specific details of the presence that are not necessarily part of a long-term memory. Neurophysiological studies in primates indicate that sustained activity of neurons encodes the sensory information even though the object is no longer present. Furthermore they suggest that dopamine transmits the respective input to the prefrontal cortex, and simultaneous suppression by GABA spatially restricts this neuronal activity. Here we show that Drosophila melanogaster possesses a similar spatial memory during locomotion. Using a new detour setup, we show that flies can remember the position of an object for several seconds after it has been removed from their environment. In this setup, flies are temporarily lured away from the direction towards their hidden target, yet they are thereafter able to aim for their former target. Furthermore, we find that the GABAergic (stainable with antibodies against GABA) ring neurons of the ellipsoid body in the central brain are necessary and their plasticity is sufficient for a functional spatial orientation memory in flies. We also find that the protein kinase S6KII (ignorant) is required in a distinct subset of ring neurons to display this memory. Conditional expression of S6KII in these neurons only in adults can restore the loss of the orientation memory of the ignorant mutant. The S6KII signalling pathway therefore seems to be acutely required in the ring neurons for spatial orientation memory in flies.