The motor cortex is a region of the cerebral cortex involved in the planning, control, and execution of voluntary movements. It is situated in the frontal lobe of the brain and is divided into several areas, including the primary motor cortex, the premotor cortex, and the supplementary motor area.