The digestive system breaks down food through mechanical and chemical digestion. Mechanical digestion involves chewing and mixing food, while chemical digestion uses enzymes to break down carbohydrates, proteins, and lipids. Digestion occurs in several phases through the gastrointestinal tract which includes the mouth, esophagus, stomach, small intestine, large intestine, and rectum. Nutrients are absorbed through the small intestine walls and eliminated through the large intestine and rectum. Accessory organs like the liver, gallbladder, and pancreas also play important roles in digestion.