Shamash et al. probe the navigational strategies mice use as they escape from a threat. By systematically placing and removing obstacles blocking their initial path, the authors find evidence that mice memorize intermediate ‘subgoal’ locations to find their way home.