If he's been housebroken and suddenly has started having accidents, I'd suspect a medical reason, most likely a UTI. Peeing inappropriately can also be a sign of diabetes like my Lady has, but he's pretty young for that so I wouldn't worry.
He's neutered, isn't he? Could he be marking?
Unless you think he is marking, I'd take him to your vet. |