The rectum is the final portion of the large intestine, located between the colon and the anus. Its primary function is to collect and hold feces until it is ready to be expelled from the body. The rectum absorbs excess water from the feces, holds it until it's full, and then triggers the urge to defecate. It is a chamber that begins at the end of the large intestine and ends at the anus. The rectum is an important bridge between the digestive and defecation processes, and it plays a crucial role in maintaining continence.