Deciphering how neuronal diversity is established and maintained requires a detailed knowledge of neuronal gene expression throughout development. In contrast to mammalian brains1,2, the large neuronal diversity of the Drosophila optic lobe3 and its connectome4-6 are almost completely characterized. However, a molecular characterization of this neuronal diversity, particularly during development, has been lacking. Here we present insights into brain development through a nearly complete description of the transcriptomic diversity of the optic lobes of Drosophila. We acquired the transcriptome of 275,000 single cells at adult and at five pupal stages, and built a machine-learning framework to assign them to almost 200 cell types at all time points during development. We discovered two large neuronal populations that wrap neuropils during development but die just before adulthood, as well as neuronal subtypes that partition dorsal and ventral visual circuits by differential Wnt signalling throughout development. Moreover, we show that the transcriptomes of neurons that are of the same type but are produced days apart become synchronized shortly after their production. During synaptogenesis we also resolved neuronal subtypes that, although differing greatly in morphology and connectivity, converge to indistinguishable transcriptomic profiles in adults. Our datasets almost completely account for the known neuronal diversity of the Drosophila optic lobes, and serve as a paradigm to understand brain development across species.