The liver has multiple functions, but its main function 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. In addition, the liver is the body's chemical "factory." It takes the raw materials absorbed by the intestine and makes all the various chemicals the body needs to function. The liver also detoxifies potentially harmful chemicals. It breaks down and secretes many drugs.