An ostomy bag (also called a pouch or appliance) collects pee or poop. You attach it to your stoma. A barrier secures the bag to your skin and protects it from waste. A secure fit is important. Because without a good seal, pee and poop could get on the skin around the opening and cause irritation.