Accidents happen. When our pets have accidents, it can be especially annoying. Cleaning carpeting and washing bedding is a hassle, but it can be easily done. Mattresses can't be thrown in the washing machine, and the urine is able to soak much deeper down into the center of the mattress material. For these reasons, learning how to get dog pee out of a mattress is more challenging.