So what the liver does is it takes the ammonia, a toxic substance, and it basically transforms it into urea, which is excreted by the kidneys to outside of our body. So the second important function of the liver is in detoxification. So this basically means taking toxic substances that are detrimental to our body and transforming them into less toxic substances that can be released by our body. So the liver cells are responsible for reading the body of a wide range of toxic of poisonous substance. For example, drugs that we ingest into our body, alcohol that we ingest, different types of metabolic end products such as, for example, lactic acid, as well as ammonia that we just described above. So remember, when we break down amino acids into ATP molecules we produce ammonia, a toxic substance.