A Gloucestershire man rejected by his ex-wife went on to have sex with her bull mastiff dog, a court heard.
Kelly Thacker claims to have found her ex-husband Nicholas Saunders in her bed having intercourse with the animal on January 15 last year.
The 46-year-old, of Bell Lane, Lechlade, denies the charge but accepts he was naked in the bed with the dog.
Gloucester Crown Court heard Saunders was thrown out of his house following an argument with his girlfriend and sought out sympathy at his ex-wife’s home.
The pair had remained on friendly terms following their separation and Saunders 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.
The jury of seven women and five men heard that Saunders got undressed and climbed into Mrs Thacker’s bed while she went downstairs to sleep.
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 body and forensic examinations showed the DNA of a dog was found, the court heard.
Saunders pleaded not guilty to having intercourse with an animal. The trial continues.