Neurons selective to running trajectories in the rat anterior cingulate cortex are reactivated during observation and interact with hippocampal replay to guide subsequent spatial navigation.