Writer's cramp is a focal hand dystonia that specifically affects handwriting. Though writer's cramp has been attributed to a dysfunction of the basal ganglia, the role of the basal ganglia in the pathogenesis of writer's cramp remains to be determined. Seventeen patients with writer's cramp (nine females; age range: 24-71 years) and 17 healthy individuals (six females; age range: 27-68 years) underwent functional MRI (fMRI) while they discriminated the orientation of gratings delivered to the tip of the right index finger. Statistical parametric mapping was used to analyse the fMRI data. The significance level was set at a corrected P-value of 0.05. Relative to healthy controls, patients with writer's cramp showed a widespread bilateral increase in task-related activity in the putamen, caudate nucleus, internal globus pallidus and lateral thalamus. In these areas, hyperactivity was more pronounced in patients who had recently developed writer's cramp. The enhanced response of the basal ganglia to tactile input from the affected hand is compatible with the concept of impaired centre-surround inhibition within the basal ganglia-thalamic circuit and may lead to an excessive activation of sensorimotor cortical areas during skilled movements affected by dystonia. Outside the basal ganglia, dystonic patients showed task-related overactivity in visual cortical areas, left anterior insula and right intraparietal sulcus, but not in the primary or secondary sensory cortex. In addition, task-related activity in the cerebellar nuclei, posterior vermis, right paramedian cerebellar hemisphere and dorsal pons was inversely related with the severity of hand dystonia. Regional activity in these areas may reflect secondary adaptive reorganization at the systems level to compensate for the dysfunction in the basal ganglia-thalamic loop.