Cognitive functions and behaviors in mammals depend on the formation of complex and precise neural circuits during development. There could be several hundred or even thousands of types of neurons with very different structural and functional properties in mammals. Synapses, which are the connections between neurons that allow the passage of information, also differ in structure and function. The formation of the complex nervous system in mammals therefore requires the production of a wide variety of different synaptic types. Our goal was to understand the molecular and cellular mechanisms that control the formation of these specific connections. Another goal was to understand how neuronal activity during development affects these mechanisms and thus what role modulation of the environment could play. Our work highlights the fundamental mechanisms regulating brain development, but also sheds light on the etiology of neurodevelopmental diseases such as autism or schizophrenia. Indeed, mutations in genes producing the components of synapses have been found in these diseases, leading to the term "synaptopathies" or synapse diseases.