Defecation (or defaecation) follows digestion and is the necessary biological process by which organisms eliminate a solid, semisolid, or liquid waste material known as feces (or faeces) from the digestive tract via the anus or cloaca.
The rectum is reponsible for temporary storage of faeces before defecation. As it becomes filled the rectal walls expand and stretch receptors stimulate the desire to defecate.