One of the greatest challenges of systems neuroscience is to explain how synaptic connections change to support adaptive behaviours. Neuroscientists have previously showed that synaptic learning mechanisms in the brain’s cortex are dependent on feedback from deeper brain regions. They have now precisely deciphered how this feedback gates synaptic strengthening by switching on and off particular inhibitory neurons. This study may also offer insight into computerized learning systems and artificial intelligence.