A new study reveals how the brain forms cohesive mental maps of spaces and highlights the critical role of sleep in this process.