The food that leaves the stomach goes into the small intestine, where the food minerals and vitamins are delivered to the bloodstream. After this happens, the undigested mass is moved into the large intestine, then released as waste, through the anus.