<human>:  What is the function of the Basal ganglia?
<bot>: The basal ganglia are a collection of nuclei in the brain that are involved in motor control. They are involved in the planning of movements and the execution of them. The basal ganglia are also involved in learning and memory.