If it’s a sexual behaviour, desexing the dog is the easiest solution and should result in success in most cases though it may take a few months for them to stop totally. Punishment such as hitting, pulling them away or yelling will do almost nothing and may actually make the problem worse, especially if it makes the dog feel more anxious. If the dog humps only occasionally, ignore it or distract the dog into another activity such as chasing a ball or running around. Distraction is a good option. Make a loud, sudden noise such as a clap or high pitched, excited squeal and then encourage the dog to do something more socially acceptable such as play tug, chase a ball or run around outside. Daily physical activity helps reduce this behaviour in very active dogs as well. For a dog that displays a pattern of humping such as with visitors or at the park, use training and rewards to gain control over the situation. Undertake dog training so that he learns basic commands which can be utilised during these excitable moments. Once the dog has learnt these skills, ask a willing friend to help continue the training at home. Have some treats ready and the dog in the house when the friend knocks on the door. Control the dog using commands and rewards before opening the door and greeting the friend. Keep the dog on a lead if necessary. Continue with the friend in different situations, all the time rewarding the dog for positive behaviour. After several ‘practice visits’ you will hopefully be able to invite guests into the home again without fear of embarrassment.