The digestive system is composed of the gastrointestinal tract, including salivary glands, the liver and the exocrine pancreas. The main function of the gastrointestinal system is to digest and absorb ingested nutrients, then eliminate what the body no longer needs. How this happens determines our overall health.