I will introduce a motor skill learning paradigm that trains stereotyped complex motor sequences in rodents. By recording and manipulating neural activity in the basal ganglia, motor cortex and thalamus, we delineate the logic by which these circuits work together to promote the acquisition and control of task-specific motor sequences.