* Neutering your dog. Neutering is the surgical removal of the testicles, which stops the production of testosterone. Testosterone is the hormone that drives sexual desire in dogs. Neutering can be done at any age, but it is most effective when done before puberty.
* Training your dog. Training can help you to control your dog's behavior, including his sexual desire. You can teach your dog to sit, stay, and come when you call him. You can also teach him to ignore female dogs.
* Managing your dog's environment. Keep your dog away from female dogs whenever possible. This means avoiding places where female dogs are likely to be, such as dog parks and public parks. You should also keep your dog indoors when you are not home.
If you are concerned about your dog's sexual behavior, talk to your veterinarian. They can help you to develop a management plan that is right for your dog.