The publicist for comedian Bill Cosby said Tuesday that both Cosby and Supreme Court nominee Brett Kavanaugh are victims of an ongoing "sex war" in Washington, D.C.

Andrew Wyatt made the statement outside a courthouse in Pennsylvania moments after Cosby was sentenced to at least three years in prison for sexual assault.

"What is going on in Washington today with Judge Kavanaugh is part of that sex war that Judge O’Neill along with his wife are a part of," Wyatt said, alluding to the judge who presided over Cosby's trial.

Bill Cosby's publicist, Andrew Wyatt, claims both Cosby and Brett Kavanaugh are victims of "a sex war" that is "going on in Washington today." pic.twitter.com/jRHOjzUZD7 — Aaron Rupar (@atrupar) September 25, 2018

The accusation came as Wyatt railed against what he called the most "racist and sexist trial in the history of the United States."

On Monday, Cosby was sentenced to three to 10 years in prison for drugging and sexually assaulting Andrea Constand at his home in 2004.

“No one is above the law. And no one should be treated differently or disproportionately because of who they are or because of wealth, celebrity or even philanthropy," O'Neill said in the sentencing.

His sentencing came as Kavanaugh faces growing scrutiny over sexual assault accusations brought against him from multiple women.

The New Yorker published a report on Sunday in which a woman, Deborah Ramirez, claimed Kavanaugh exposed himself in front of her and forced her to touch his penis during a party at Yale in the 1980s.

The story was released a week after Christine Blasey Ford came forward to The Washington Post and described an alleged sexual assault committed by Kavanaugh while the two were in high school.

Kavanaugh has fiercely denied the accusations. He and Ford will testify before the Senate Judiciary Committee regarding the charges on Thursday.

The White House has said it is open to having Ramirez testify as well.