Presidential hopeful Kamala Harris ripped a law firm’s work on a controversial plea deal involving deep-pocketed pedophile Jeffrey Epstein — the same day she took money from some of its attorneys at a fundraiser.

Harris had no problem allowing six partners from the firm, Kirkland & Ellis, help raise dough for her campaign last week by hosting the Chicago event — which even featured her husband, lawyer Douglas Emhoff, the Associated Press reported.

Yet the same day, she joined several other presidential contenders in blasting the 2008 plea deal that the law firm helped negotiate for Epstein, which allowed him to skirt federal sex charges in Florida.

Epstein, who has been accused of sexually abusing dozens of girls, got off with a single count of soliciting sex from a minor and served 13 months behind bars under the Florida deal.

Manhattan federal prosecutors have just charged the politically connected multimillionaire with hefty sex-trafficking raps.

Kamala’s campaign told AP that none of the Kirkland & Ellis partners at her fundraiser worked on Epstein’s deal.