The British Barclays bank executive who beat his wife to death with a crowbar tearfully testified Monday that he “killed the woman I love” after she taunted him about his erectile dysfunction.

David Pomphret, 51, said during his trial in Liverpool Crown Court that he felt “terrible” about hitting wife Ann Marie Pomphret over the head with the tool more than 30 times at their Cheshire home in 2018.

“I killed the woman I love. It’s a horrible thing to do,” he testified, according to the Manchester Evening News.

“She ranted at me for being a bad parent, calling me f–ing useless,” David said. “Called me limp and useless. Bit embarrassing — we have been having, I have been having, erectile dysfunction. I was not performing very well.”

The couple of 22 years had gotten into a fight after David went to their stables to pick up some tools for a DIY project, which apparently angered his wife, who suffered from autism and had been undergoing cancer treatment.

Ann Marie, 49, allegedly shouted that he was “f–ing crazy” and “just going to create more s–t,” before turning on their teenage daughter and criticizing her over her clothes, which she found too revealing, David told the court.

At one point, she slapped David across the face. He grabbed the hood of her coat — then blacked out.

The next thing he remembered was “standing at the side of her body.”

“There was blood on my hands and the crowbar,” he said. “She was on the floor.”

After the attack, David said he “stupidly” tried to cover up his tracks, washing his hands and the crowbar and burning his blood-covered sweatshirt.

Prosecutors allege David, who is charged with murder, intended to kill his wife. But his defense lawyers argue he suffered a “loss of self control” consistent with manslaughter.