The duodenum is innervated by the parasympathetic and sympathetic parts of the autonomic nervous system.