The colon works alongside the stomach and small intestine to remove stool and maintain fluid and electrolyte balance.