The autonomic nervous system is controlled mainly by centers located in the spinal cord, brain stem, and hypothalamus, and functions to control arterial pressure, gastrointestinal motility and secretion, urinary output, sweating, body temperature, and many other bodily activities.