The liver has many functions, but its main job within the digestive system is to process the nutrients absorbed from the small intestine. Bile from the liver secreted into the small intestine also plays an important role in digesting fat and some vitamins.
The liver is your body’s chemical “factory.” It takes the raw materials absorbed by the intestine and makes all the various chemicals your body needs to function.
The liver also detoxifies potentially harmful chemicals. It breaks down and secretes many drugs that can be toxic to your body.