The small intestine is responsible for most digestion and absorption of nutrients. It is divided into three parts - the duodenum, jejunum, and ileum. The duodenum contains Brunner's glands which secrete mucus to protect the lining and help regulate pH. It connects to the bile ducts and pancreas. The jejunum and ileum further digest food and absorb nutrients through fingerlike villi before waste passes to the large intestine.