A new study reveals how the brain reprocesses and refines memories during sleep, particularly those related to spatial learning. Researchers tracked rats’ hippocampal neuron activity for up to 20 hours and found that memory patterns first echoed the learning phase and then gradually shifted to match the recollection phase upon waking.