The human colon seen from front. The rectum (red) is near the end of the colon.
The rectum is a part of the large intestine which forms a part of the gastrointestinal system. The rectum ends in the anus which is the end of the gastrointestinal system. It is where feces or stools are stored temporarily before coming out of the anus.