This article needs additional citations for verification. (March 2008) (Learn how and when to remove this template message)
Humans expel feces with a frequency varying from a few times daily to a few times weekly. Waves of muscular contraction (known as peristalsis) in the walls of the colon move fecal matter through the digestive tract towards the rectum. Undigested food may also be expelled this way, in a process called egestion.
The rectum ampulla (anatomically also: ampulla recti) temporarily stores fecal waste. As the waste fills the rectum and expands the rectal walls, nervous system stretch receptors in the rectal walls stimulate the desire to defecate. This urge to defecate arises from the reflex contraction of rectal muscles, relaxation of the internal anal sphincter, and an initial contraction of the skeletal muscle of the external anal sphincter. If the urge is not acted upon, the material in the rectum is often returned to the colon by reverse peristalsis, where more water is absorbed and the faeces is stored until the next mass peristaltic movement of the transverse and descending colon. If defecation is delayed for a prolonged period the fecal matter may harden, resulting in constipation. If defecation occurs too fast, before excess liquid is absorbed, diarrhea may occur.
When the rectum is full, an increase in intra-rectal pressure forces apart the walls of the anal canal, allowing the fecal matter to enter the canal. The rectum shortens as material is forced into the anal canal and peristaltic waves push the feces out of the rectum. The internal and external anal sphincters along with the puborectalis muscle allow the feces to be passed by muscles pulling the anus up over the exiting feces.
Defecation is normally assisted by taking a deep breath and trying to expel this air against a closed glottis (Valsalva maneuver). This contraction of expiratory chest muscles, diaphragm, abdominal wall muscles, and pelvic diaphragm exerts pressure on the digestive tract. Ventilation at this point temporarily ceases as the lungs push the chest diaphragm down to exert the pressure. Thoracic blood pressure rises and as a reflex response the amount of blood pumped by the heart decreases. Death has been known to occur in cases where defecation causes the blood pressure to rise enough to cause the rupture of an aneurysm or to dislodge blood clots (see thrombosis). Also, in releasing the Valsalva maneuver blood pressure falls; this, coupled with standing up quickly to leave the toilet, can result in a blackout. 
During defecation, the external sphincter muscles relax. The anal and urethral sphincter muscles are closely linked. Experiments by Harrison Weed at the Ohio State University Medical Center have shown they can only be contracted together, not individually, and that both show relaxation during urination. This explains why defecation is frequently accompanied by urination.
Voluntary and involuntary control
Defecation may be involuntary or voluntary. Young children learn voluntary control through the process of toilet training. Once trained, loss of control, called fecal incontinence, may be caused by physical injury, nerve injury, prior surgeries (such as an episiotomy), constipation, diarrhea, loss of storage capacity in the rectum, intense fright, inflammatory bowel disease, psychological or neurological factors, childbirth, or death.
The positions and modalities of defecation are culture-dependent. Squat toilets are used by the vast majority of the world, including most of Africa, Asia, and the Middle East. The use of sit-down toilets in the Western world is a relatively recent development, beginning in the 19th century with the advent of indoor plumbing.
Attempting forced expiration of breath against a closed airway (the valsalva maneuver) is sometimes practiced to induce defecation while on a toilet. Cardiac arrest and other cardiovascular complications can in rare cases occur due to attempting to defecate using the valsalva maneuver. Valsalva retinopathy is another pathological syndrome associated with the Valsalva maneuver.
Society and culture
Anal cleansing after defecation
The anus and buttocks may be cleansed after defecation with toilet paper, similar paper products, or other absorbent material. In many cultures, such as Hindu and Muslim, water is used for anal cleansing after defecation, either in addition to using toilet paper or exclusively. When water is used for anal cleansing after defecation, toilet paper may be used for drying the area afterwards.
Mythology and tradition
Some peoples have culturally significant stories in which defecation plays a role. For example:
- In an Alune and Wemale legend from the island of Seram, Maluku Province, Indonesia, the mythical girl Hainuwele defecates valuable objects.
- One of the traditions of Catalonia (Spain) relates to the caganer, a figurine depicting the act of defecation which appears in nativity scenes in Catalonia and neighbouring areas with Catalan culture. The exact origin of the caganer is lost, but the tradition has existed since at least the 18th century.
- WHO and UNICEF (2017) Progress on Drinking Water, Sanitation and Hygiene: 2017 Update and SDG Baselines. Geneva: World Health Organization (WHO) and the United Nations Children’s Fund (UNICEF), 2017
- NIH. "Bowel Movement". Medline. Retrieved 13 September 2014.
- [Cardio-vascular Events at Defecation: Are They Unavoidable? - Medical Hypotheses, Jul 1990, 32(3):231-3]
- "Fecal incontinence - Causes". Mayo Foundation for Medical Education and Research. Retrieved 9 September 2014.
- Kira, Alexander (1976). The Bathroom (2. ed. New and expanded ed.). New York, N.Y.: Viking Pr. pp. 115–116. ISBN 978-0-670-00612-0.
- C. Singer; E Holmyard; A Hall; T. Williams, eds. (1958) . A History of Technology. Vol.IV: The Industrial Revolution, 1750-1850. Oxford Clarendon Press. pp. 507–508. OCLC 886036895.
- Fisher-Hubbard AO, Kesha K, Diaz F, Njiwaji C, Chi P, Schmidt CJ (2016). "Commode Cardia-Death by Valsalva Maneuver: A Case Series". Journal of Forensic Sciences. 61 (6): 1541–1545. doi:10.1111/1556-4029.13196. PMID 27716918.
- Ikeda T, Oomura M, Sato C, Anan C, Yamada K, Kamimoto K (2016). "Cerebral infarction due to cardiac myxoma developed with the loss of consciousness immediately after defecation-a case report". Rinsho Shinkeigaku. 56 (5): 328–333. doi:10.5692/clinicalneurol.cn-000856. PMID 27151226.
- Gibran, S K; Kenawy, N; Wong, D; Hiscott, P (2007). "Changes in the retinal inner limiting membrane associated with Valsalva retinopathy". British Journal of Ophthalmology. 91 (5): 701–2. doi:10.1136/bjo.2006.104935. PMC . PMID 17446519.
- Connor AJ (2010). "Valsalva-related retinal venous dilation caused by defaecation". Acta Ophthalmologica. 88 (4): 328–33. doi:10.1111/j.1755-3768.2009.01624.x. PMID 19747224.
- "Hainuwele". The Oxford Companion to World Mythology. ISBN 9780195156690.
- "A traditional Nativity scene, Catalan-style". BBC News. 23 December 2010. Retrieved 23 December 2010.