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.