The basal ganglia are a group of subcortical nuclei situated deep within the cerebral hemispheres. These nuclei play a significant role in a variety of functions, including motor control, cognition, emotions, and learning. Key components of the basal ganglia include the caudate nucleus, putamen, globus pallidus, substantia nigra, and the subthalamic nucleus.