How do I deal with inappropriate toileting in dogs and cats?
This is usually related to some kind of stress or upset, but may be related to a medical problem so it is a good idea to get a vet check. If the problem is related to separation see the FAQ “How do I deal with separation related anxieties?”. Usually it’s advisable to use housetraining advice to retrain your dog when other issues are resolved.