Hi...yes, I agree with the UTI check answer, but my 1 year old beagle is housetrained but still pees in our basement on and off. He does it when I am not paying attention to him. It is a defiance thing. I'm sure of it, because he always pees right where we can find it. We just take him downstairs and show him the spot and say no! And it usually works...I don't like to put my beagle in his crate when he is bad because it would make him want to go into it less when we need to leave or when we go to bed. Good luck!