Nature's Miracle Advanced Stain and Odor Eliminator Foam works to discourage re-soiling by removing the odor of dog messes. The foam penetrates down into the carpet to power out severe dog messes. The bacteria-based formula produces enzymes when it comes in contact with bio-based messes including severe urine, diarrhea, vomit and blood. The Stain and Odor Eliminator is safe to use on carpets, hard floors, furniture, fabrics and more, when used as directed, and leaves you with a light fresh scent.