Abstract Neuronal phenotypic traits such as morphology, connectivity and function are dictated, to a large extent, by a specific combination of differentially expressed genes. Clusters of neurons in transcriptomic space correspond to distinct cell types and in some cases—for example, Caenorhabditis elegans neurons 1 and retinal ganglion cells 2–4 —have been shown to share morphology and function. The zebrafish optic tectum is composed of a spatial array of neurons that transforms visual inputs into motor outputs. Although the visuotopic map is continuous, subregions of the tectum are functionally specialized 5,6 . Here, to uncover the cell-type architecture of the tectum, we transcriptionally profiled its neurons, revealing more than 60 cell types that are organized in distinct anatomical layers. We measured the visual responses of thousands of tectal neurons by two-photon calcium imaging and matched them with their transcriptional profiles. Furthermore, we characterized the morphologies of transcriptionally identified neurons using specific transgenic lines. Notably, we found that neurons that are transcriptionally similar can diverge in shape, connectivity and visual responses. Incorporating the spatial coordinates of neurons within the tectal volume revealed functionally and morphologically defined anatomical subclusters within individual transcriptomic clusters. Our findings demonstrate that extrinsic, position-dependent factors expand the phenotypic repertoire of genetically similar neurons.