The best way to clean an urine stain is to treat it while the stain is still fresh and wet. Unfortunately, you may not be in the house when the accident happens. Dried dog stains are much harder to remove, especially if they have sat on the carpet for a long time, or if the dog keeps urinating on the same spot again and again.
