A man in the United Kingdom was sentenced to two years in prison Tuesday for killing his girlfriend’s pet dog “to get back at her.”

The Liverpool Crown Court heard that Brenda Prescott, the dog’s owner, was heart-broken when she returned home April 11 to find one of her pet dogs dead from multiple skull fractures. She then found her other dog injured under a pile of laundry. She rushed the canine to an animal hospital but the dog had to be put down due to the extent of the injuries.

Prosecutor told the court that Prescott was in an on-off relationship with 51-year-old Sean Wisbey. A few days prior to the incident, Wisbey had threatened to cut Prescott’s dogs’ throats. On the day of the incident, Wisbey arrived at her home. She allowed him to freshen up. She went out for a while and when she returned, she saw the curtains were shut.

”She got in and shouted their [dogs] names but there was no answer. She looked around but could not find them and asked a neighbor to help her look for them. In the lounge she lifted up some curtains and a blanket on the floor and found Rosie lying lifeless and covered in blood. One of her back legs was facing the wrong way and she knew she was dead,” the prosecutor said.

She then found her other pet under a pile of laundry. Vets told her the canine had a broken pelvis. The dog had to be euthanized. Prescott immediately informed the police and Wisbey was taken into custody the same night. During interrogation, the accused told the police that he committed the crime because he wanted to “get back at” his girlfriend.

The accused was sentenced to two years in prison and the judge imposed a five-year restraining order to keep away from Prescott.

This image shows a pair of handcuffs at the Commissariat de Police Nationale (National Police Station) in Alfortville, France, Nov. 21, 2016. THOMAS SAMSON/AFP/Getty Images