why does my dog pee in my room

There may be a medical or behavioral issue at play if your dog has started defecating in your bedroom. You should take your dog to the vet for an examination and treatment, and consider consulting a veterinary behaviorist for help with any underlying behavioral disorders that could be responsible for this behavior.