The rectum is the end part of the large intestine, where faeces are stored before being released from the intestine during defecation.