The medulla oblongata is located at the base of the brain, where the brainstem connects the brain to the spinal cord.