Nature, Published online: 05 March 2025; doi:10.1038/d41586-025-00634-xDifferent neuronal cells have a diverse range of activity patterns, but the cause has remained unclear. In mice, maps of brain-wide inputs to individual neurons that do or do not show activity modulation by the behavioural state has uncovered wiring rules that could help to explain this functional diversity.