The rectum is the final section of the large intestine, serving as a temporary storage site for feces before they are expelled through the anus. It plays a crucial role in the regulation of defecation, involving complex neural and muscular interactions to maintain continence and facilitate bowel movements.