Dopamine signalling regulates a variety of complex behaviours, and defects in dopamine neuron function or survival result in severe human pathologies, such as Parkinson's disease. The common denominator of all dopamine neurons is the expression of dopamine pathway genes, which code for a set of phylogenetically conserved proteins involved in dopamine synthesis and transport. Gene regulatory mechanisms that result in the direct activation of dopamine pathway genes and thereby ultimately determine the identity of dopamine neurons are poorly understood in all systems studied so far. Here we show that a simple cis-regulatory element, the dopamine (DA) motif, controls the expression of all dopamine pathway genes in all dopaminergic cell types in Caenorhabditis elegans. The DA motif is activated by the ETS transcription factor AST-1. Loss of ast-1 results in the failure of all distinct dopaminergic neuronal subtypes to terminally differentiate. Ectopic expression of ast-1 is sufficient to activate the dopamine pathway in some cellular contexts. Vertebrate dopamine pathway genes also contain phylogenetically conserved DA motifs that can be activated by the mouse ETS transcription factor Etv1 (also known as ER81), and a specific class of dopamine neurons fails to differentiate in mice lacking Etv1. Moreover, ectopic Etv1 expression induces dopaminergic fate marker expression in neuronal primary cultures. Mouse Etv1 can also functionally substitute for ast-1 in C. elegans. Our studies reveal a simple and apparently conserved regulatory logic of dopamine neuron terminal differentiation and may provide new entry points into the diagnosis or therapy of conditions in which dopamine neurons are defective.