The digestive system comprises the alimentary canal (mouth, pharynx, oesophagus, stomach, small and large intestines, anal canal) and the accessory glands (salivary glands, liver, pancreas). It carries out mechanical and chemical digestion, absorption of nutrients and elimination of faeces.