How does the brain turn experiences into memories? Scientists reveal how two neuron types control learning.