The anus is an opening at the opposite end of an animal's digestive tract from the mouth. Its function is to control the expulsion of feces, the residual semi-solid waste that remains after food digestion, which, depending on the type of animal, includes: matter which the animal cannot digest, such as bones; food material after the nutrients have been extracted, for example cellulose or lignin; ingested matter which would be toxic if it remained in the digestive tract; and dead or excess gut bacteria and other endosymbionts.