Résumé : The striatum as the main entry nucleus of the basal ganglia is long known to be critical for motor control. It integrates information from multiple cortical areas, thalamic and midbrain nuclei to refine and control motion. By tackling this incredible variety of input signals, increasing evidences showed a pivotal role, particularly of the dorsal striatum, in executive functions. The complexity of the dorsal striatum (DS) in its compartmentalization and in the nature and origin of its afferent connections, makes it a critical hub controlling dynamics of motor learning and behavioral or cognitive flexibility. The present review summarizes findings from recent studies that utilize optogenetics with complementary technologies including electrophysiology, activity imaging and tracing methods in rodents to elucidate the functioning and role of discrete regions and specific pathways of the DS in behavioral flexibility, with an emphasis on the processes leading to initial action sequence or serial order learning and reversal learning.