An ostomy is a surgical procedure that creates an opening (stoma) in the body to allow for the discharge of bodily wastes. This is typically necessary when part of the bowel or urinary system is damaged or diseased. Common types of ostomies include colostomy, ileostomy, and urostomy.