The mammalian brain has developed memory systems mediating rigid, yet evolutionarily adaptive patterns of responding to invariant environmental stimuli and internal demands. Such memory systems promote the recall of specific response templates and the execution of inflexible actions to liberate buffering capacity for performing conscious, explicit cognitive processing. The dopamine-innervated neostriatum is central to the ability to learn such consistent associations between stimuli and actions implicitly. Controlled by their outcome when initially learned, actions succumb through iteration to the influence of triggering stimuli and progressively detach themselves from the pleasurable results originally produced, thereby becoming pervasive habits. This might be the case for drug-seeking and drug-taking behaviours, actions learned in part through dopamine-dependent drug-induced reinforcement when the drug is first experienced. With extended drug use, however, drugseeking actions might become conditioned to, and triggered by, specific exteroceptive stimuli and/or affective states, gradually becoming irrepressible forms of responding. We will review neuroanatomical, neuropharmacological and behavioural evidence suggesting that the basal ganglia play a prominent role in the shaping of drug addiction, here regarded as a pathological modification of otherwise adaptive habit learning systems mediated by the basal ganglia.peer-reviewe