The small intestine is the longest part of the digestive system. It extends from the stomach (pylorus) to the large intestine (cecum) and consists of three parts: duodenum, jejunum and ileum. The main functions of the small intestine are to complete digestion of food and to absorb nutrients.