Animal behavior originates from neuronal activity distributed across brain-wide networks. However, techniques available to assess large-scale neural dynamics in behaving animals remain limited. Here we present compact, chronically implantable, high-density arrays of optical fibers that enable multi-fiber photometry and optogenetic perturbations across many regions in the mammalian brain. In mice engaged in a texture discrimination task, we achieved simultaneous photometric calcium recordings from networks of 12-48 brain regions, including striatal, thalamic, hippocampal and cortical areas. Furthermore, we optically perturbed subsets of regions in VGAT-ChR2 mice by targeting specific fiber channels with a spatial light modulator. Perturbation of ventral thalamic nuclei caused distributed network modulation and behavioral deficits. Finally, we demonstrate multi-fiber photometry in freely moving animals, including simultaneous recordings from two mice during social interaction. High-density multi-fiber arrays are versatile tools for the investigation of large-scale brain dynamics during behavior.