An ileostomy is a surgical procedure that creates an opening in the abdominal wall to allow waste to exit the body from the ileum, bypassing the colon. This is often necessary for patients with conditions affecting the colon, such as inflammatory bowel disease or colorectal cancer, providing an alternative path for waste elimination.