What is the function of the liver?

 The liver produces bile that helps digest fats and also helps remove toxins from the body.