Rabah et al. discover an astrocyte-to-neuron hydrogen peroxide signalling cascade, which is crucial for long-term memory formation in Drosophila. This signalling is found to be inhibited by amyloid-β peptide, suggesting a link to Alzheimer’s disease.