Deep brain stimulation (DBS) of the subthalamic nucleus (STN) reduces motor symptoms in patients with Parkinson's disease (PD) and improves their quality of life; however, the effect of DBS on cognitive functions and its psychiatric side-effects are still controversial. To assess the neuropsychiatric consequences of DBS in patients with PD we did an ancillary protocol as part of a randomised study that compared DBS with the best medical treatment.156 patients with advanced Parkinson's disease and motor fluctuations were randomly assigned to have DBS of the STN or the best medical treatment for PD according to the German Society of Neurology guidelines. 123 patients had neuropsychological and psychiatric examinations to assess the changes between baseline and after 6 months. The primary outcome was the comparison of the effect of DBS with the best medical treatment on overall cognitive functioning (Mattis dementia rating scale). Secondary outcomes were the effects on executive function, depression, anxiety, psychiatric status, manic symptoms, and quality of life. Analysis was per protocol. The study is registered at ClinicalTrials.gov, number NCT00196911.60 patients were randomly assigned to receive STN-DBS and 63 patients to have best medical treatment. After 6 months, impairments were seen in executive function (difference of changes [DBS-best medical treatment] in verbal fluency [semantic] -4.50 points, 95% CI -8.07 to -0.93, Cohen's d=-;0.4; verbal fluency [phonemic] -3.06 points, -5.50 to -0.62, -0.5; Stroop 2 naming colour error rate -0.37 points, -0.73 to 0.00, -0.4; Stroop 3 word reading time -5.17 s, -8.82 to -1.52, -0.5; Stroop 4 colour naming time -13.00 s, -25.12 to -0.89, -0.4), irrespective of the improvement in quality of life (difference of changes in PDQ-39 10.16 points, 5.45 to 14.87, 0.6; SF-36 physical 16.55 points, 10.89 to 22.21, 0.9; SF-36 psychological 9.74 points, 2.18 to 17.29, 0.5). Anxiety was reduced in the DBS group compared with the medication group (difference of changes in Beck anxiety inventory 10.43 points, 6.08 to 14.78, 0.8). Ten patients in the DBS group and eight patients in the best medical treatment group had severe psychiatric adverse events.DBS of the STN does not reduce overall cognition or affectivity, although there is a selective decrease in frontal cognitive functions and an improvement in anxiety in patients after the treatment. These changes do not affect improvements in quality of life. DBS of the STN is safe with respect to neuropsychological and psychiatric effects in carefully selected patients during a 6-month follow-up period.German Federal Ministry of Education and Research (01GI0201).