You mark your stuff by putting your name on it; your dog marks theirs with urine. We’ve covered why dogs submissively urinate, now here’s how to prevent urine-marking behaviors before they happen in your house.

Before doing anything else, take your dog to the veterinarian to rule out any medical causes for the urine-marking behavior. If they get a clean bill of health, use the following tips to make sure they don’t start marking their territory.

Spay (or neuter) first

Spay or neuter your dog as soon as possible. The longer a dog goes before being spayed or neutered, the more difficult it will be to train them not to mark in the house. Spaying or neutering your dog should reduce urine-marking and may stop it altogether.

But if they have been marking for a long time, a pattern may already be established. Because it has become a learned behavior, spaying or neutering alone won’t solve the problem. Use techniques for housetraining an adult dog to modify your dog’s marking behavior.