In humans, the GI tract is a 20-foot muscular tube lined with primarily endodermally derived columnar epithelial cells. The esophagus begins at the end of the posterior pharynx. The esophagus courses through the thoracic cavity and pierces the diaphragm, where it enters the abdominal cavity and merges with the stomach. The stomach merges distally with the small intestine, which is divided into 3 parts, the duodenum, jejunum, and ileum. The terminal ileum joins the colon at the ileocecal valve. The colon begins in the right lower abdomen (ascending colon) and transverses under the liver into the transverse, then left, colon. Just before entering the rectum, the distal left colon forms an S shape (the sigmoid colon). The luminal GI tract ends at the anus. The liver, pancreas, and gallbladder are accessory organs that form as appendages from the second portion of the duodenum.