The British Barclays bank executive who beat his wife to death with a crowbar after she taunted him about his erectile dysfunction was sentenced to life behind bars Tuesday.

David Pomphret, 51, battered wife Ann Marie Pomphret over the head 30 times in stables at their home in Cheshire, telling Liverpool Crown Court that he flipped over her teasing him for “not performing very well” and being “limp and useless” in bed.

He had admitted killing his spouse, but denied murder on the grounds of a temporary loss of control, according to the Manchester Evening News.

But he was slammed at his sentencing hearing Tuesday for his “web of deceit and lies” after initially denying that he was the killer, claiming when he first called cops that he found the 49-year-old already dead last November, according to the paper.

“You are, in my view, an accomplished liar,” Judge David Aubrey QC told him, according to the report.

“You tried to get away with it, and you may well have done so had it not been for one factor. You forgot to change your socks,” the judge told him, referring to how a speck of blood had been found on his clothing.

Calling it a “ferocious attack upon your wife,” Aubrey insisted that the banker “intended” to kill her — refusing to believe he “just snapped” over her alleged bullying, according to the report.

”She had defensive injuries to both her hands and she must have been pleading and begging for it to stop,” the judge said, saying Pomphret instead “continued to strike her” and left her for dead.

“A family has been destroyed. A daughter has lost her mother — murdered by her father, who is about to commence a sentence of life imprisonment,” the judge said, according to the paper.

He sentenced Pomphret to life in prison with a minimum of 20 years before he is allowed to apply for parole.

“When you apply for parole, there is no guarantee you will be released,” the judge warned the banker, who showed no emotion as he was led to the cells, according to the Evening News.