We use a combined approach of electrophysiology, behavior, and control of neural circuits in vivo using pharmacology and optogenetics to study the role of the basal ganglia in learning, movement, and neurological diseases such as Parkinson's disease and dystonia.