The brainstem is a critical structure located at the base of the brain, connecting the cerebrum with the spinal cord. It comprises three main parts: the midbrain, pons, and medulla oblongata. This area is essential for regulating many of the body's automatic functions, such as breathing, heart rate, and blood pressure.