Very simplistically, the intestine is a long tube. Anything that stays in the tube because it isn’t digested comes out of the other end as faeces. The parts that are digested go through the membranes into the blood stream. From there, stuff that isn’t wanted or by-products are filtered out by the kidneys and become urine.
Latest Answers