Almost all animals have a tube-type digestive system in which food enters the mouth, passes through a long tube, and exits as feces (poop) through the anus. The smooth muscle in the walls of the tube-shaped digestive organs rhythmically and efficiently moves the food through the system, where it is broken down into tiny absorbable atoms and molecules.
During the process of absorption, nutrients that come from the food (including carbohydrates, proteins, fats, vitamins, and minerals) pass through channels in the intestinal wall and into the bloodstream. The blood works to distribute these nutrients to the rest of the body. The waste parts of food that the body can't use are passed out of the body as feces.