The function of the digestive system is to take food into your body, break it down into individual nutrients (proteins, fats, and carbohydrates) and smaller nutrients (vitamins and minerals), and then absorb those small bits and pieces of nutrients .