A Geneva man was arrested after reportedly having sex with his wife's dog.

Jonathan Edward Medley, 39, was taken into custody late Friday night and charged with misdemeanor animal cruelty, the Dothan Eagle reported. A cash bond was set at $535.

"He was mad at his wife because she paid more attention to the dog than him so he had sex with the dog," Geneva Police Capt. Ricky Morgan told the newspaper. "(His wife) actually thought he was having an affair with another woman and hid a recording device. She learned he was in fact molesting the dog."

WTVY reported the dog, which suffered injuries, is a two-year-old male Shih Tzu named Buster.