In a perfect world, you'd catch your pet in the act, but sometimes a pee stain on your carpet won't show up for days. In that case, you might need to step it up and buy an enzyme-based cleaner from the store.
For example, Carbona's Oxy-Powered Pet Stain & Odor Remover is an enzyme-based cleaner that gets rid of cat and dog pee stains and neutralizes smells to keep pets from having more accidents in the same place. People who have pets also like to use Rocco & Roxie's Stain and Odor Eliminator to get rid of urine stains and smells.