After the food is digested in the stomach, it passes to the intestine where the digested food is absorbed. After absorption, the unwanted waste which is not required by the body is passed by the intestine to the anus from where it is finally flushed out.