Specialized subsets of dendritic cells (DCs) provide a crucial link between the innate and adaptive immune responses. The genetic programme that coordinates these distinct DC subsets is controlled by both cytokines and transcription factors. The initial steps in DC specification occur in the bone marrow and result in the generation of precursors committed to either the plasmacytoid or conventional DC pathways. DCs undergo further differentiation and lineage diversification in peripheral organs in response to local environmental cues. In this Review, we discuss new evidence regarding the coordination of the specification and commitment of precursor cells to different DC subsets and highlight the ensemble of transcription factors that control these processes.