As mice age, changes in the microorganisms in their guts contribute to cognitive decline by altering signalling between the gut and brain.