The breaking down of food in the small and large intestines, including the absorption of nutrients and water.