Attorney General William Barr said Monday that there were “serious irregularities” at the federal pen in Manhattan where accused perv Jeffrey Epstein allegedly committed suicide.

“We will get to the bottom of what happened and there will be accountability,” Barr said at a law enforcement gathering in New Orleans.

Barr also had a warning for anyone involved in the supposedly wealthy financier’s alleged crimes.

“Any co-conspirators should not rest easy. The victims deserve justice and they will get it,” the top US law enforcement official vowed.

Barr, delivering the keynote address at the National Fraternal Order of Police’s conference, said Epstein’s case “was very important to the Department of Justice and to me personally.”

“Most importantly, this case was important to the victims who had the courage to come forward and deserved the opportunity to confront the accused in the courtroom,” Barr said.

“I was appalled, and indeed the whole department was, and frankly angry, to learn of the MCC’s failure to adequately secure this prisoner,” the AG continued.

“We are now learning of serious irregularities at this facility that are deeply concerning and demand a thorough investigation. The FBI and the Office of Inspector General are doing just that.”

Epstein — a former pal of Bill Clinton and Donald Trump who was locked up in the Metropolitan Correctional Center awaiting trial on charges of sex trafficking of minors and conspiracy to sex-traffic minors — reportedly hanged himself in the federal lockup.

Epstein was found with marks on his throat weeks ago and was on suicide watch — until it was canceled at the end of last month.