This EMBO Workshop brings together leaders in genomics, neuroscience, and epigenetics to advance our understanding of how the (epi)genome achieves brain cellular diversity, shaping brain function and behaviour. Recent technological breakthroughs in single-cell, spatial, and 3D genomics and epigenomics are revealing unprecedented insights into the molecular logic behind neural diversity as well as neuronal connectivity and function.