The basal ganglia are a group of subcortical nuclei and associated structures located at the base of the forebrain.