Digested food gets absorbed in the small intestine. Undigested materials are stored in the colon or large intestine, and are then excreted through the rectum and anus.