During learning, the brain requires an exceptional amount of glucose to be imported into specific neural circuits, where it is used to form new memory-related proteins. Adler et al. discover that microglia, the resident immune cells of the brain, are critical for this process via a mechanism called microglial-metabolic coupling.