Rodent striatum is involved in sensory‐motor transformations and reward‐related learning. Lesion studies suggest dorsolateral striatum, dorsomedial striatum and nucleus accumbens underlie stimulus–response transformations, goal‐directed behaviour and reward expectation, respectively. In addition, prefrontal inputs likely control these functions. Here, we set out to study how reward‐driven behaviour is mediated by the coordinated activity of these structures in the intact brain.