Using a neural network model, neuroscientists have found that, as the brain moves between REM and slow-wave sleep cycles, the hippocampus teaches the neocortex what it learned. This process seems to convert novel, fleeting data into enduring memories.