The cerebral cortex is the seat of higher mental functions, including thinking, planning, and problem-solving.