A man rejected by his ex-wife went on to have sex with her bull mastiff dog, a court heard today.
Kelly Thacker claims to have found her ex-husband Nicholas Saunders, with whom she has two children, in her bed having intercourse with the animal on January 15 last year.
The 46-year-old denies the charge but accepts he was naked in the bed with the dog.
Gloucester Crown Court heard Saunders had been kicked out of his house following an argument with his girlfriend and had sought out sympathy at his ex-wife's home.
The pair had remained on friendly terms following their separation and Saunders had visited Mrs Thacker and stayed overnight at her house in the past.
But, the prosecution said, Saunders was looking for more than just comfort that night and when Mrs Thacker made it clear to him he did not have a chance with her he turned to the large dog, named Sasha.
Frank Abbott told the jury of seven women and five men that Saunders had got undressed and climbed into Mrs Thacker's bed while she went downstairs to sleep.
"A little later, the dogs - one of which is a bull mastiff, a large dog - came upstairs and laid on the bed," Mr Abbott said.
"He (Saunders) said to the dog 'You've just ruined my chances'.
"Meanwhile, downstairs in the lounge, Mrs Thacker could hear things going on upstairs.
"She heard the defendant rummaging around.
"She then heard him whistle to the dogs, which had since gone downstairs, and they went upstairs.
"Sasha, the dog, got onto the bed. Mrs Thacker became curious and she went upstairs.
"She saw him, in fact naked, the dog on the far side of the bed facing away from the defendant and that he was clearly trying to put his penis into the dog's vagina.
"She couldn't believe what she was seeing."
The jury were told Saunders claims he was in the bed with the dog, but denies trying to have sex with it.
Following his arrest Saunders provided police with a sample from his penis and forensic examinations showed the DNA of a dog was found, Mr Abbott told the court.
"There is no doubt that that is the position and that supports what the witness said happened," Mr Abbott added.
He told the jury they would have to consider the possibility the dog left DNA on the bed and because Saunders was naked it could have been picked up from the covers.
But he also asked them to think about where the DNA had been found on Saunders' penis.
Saunders, of Bell Lane, Lechlade, Gloucestershire, has pleaded not guilty to having intercourse with an animal.