Deep in the gray matter of the brain are the basal ganglia. The basal ganglia, along with the cerebral cortex and diencephalon, compose the region of the brain called the forebrain. The basal ganglia connect to the cortex and thalamus and organize muscle-driven motor movements of the body.