Midbrain
The mesencephalon is ancient in origin, meaning its general architecture is shared with the most ancient of vertebrates. Dopamine produced in the substantia nigra plays a role in motivation and habituation of species from humans to insects.