The intestine is the visceral and tubular part of this system that extends from the stomach to the anus, is located in the abdominal cavity and is divided into two segments: the small intestine and the large intestine.The function of the intestines is to transport food, absorb nutrients and eliminate waste through defecation.