Sen. Ted Cruz Rafael (Ted) Edward CruzCruz blocks amended resolution honoring Ginsburg over language about her dying wish Trump argues full Supreme Court needed to settle potential election disputes Press: Notorious RBG vs Notorious GOP MORE (R-Texas) on Thursday mocked high-profile attorney Michael Avenatti for backing his Democratic challenger, Rep. Beto O’Rourke, in the heated Texas Senate race, writing on Twitter that Avenatti was "beclowning himself."

“What did Michael Avenatti do right after beclowning himself with absurd and slanderous allegations during the Kavanaugh circus? Endorse Beto,” Cruz tweeted.

What did Michael Avenatti do right after beclowning himself with absurd and slanderous allegations during the Kavanaugh circus? Endorse Beto. https://t.co/YkhRZSgAy1 — Ted Cruz (@tedcruz) October 11, 2018

Cruz's tweet appeared to refer to Avenatti's involvement in representing Julie Swetnick, who brought forth sexual misconduct allegations against then-Supreme Court nominee Brett Kavanaugh Brett Michael KavanaughHarris faces pivotal moment with Supreme Court battle Poll: 59 percent think president elected in November should name next Supreme Court justice Feinstein 'surprised and taken aback' by suggestion she's not up for Supreme Court fight MORE in the days leading up to his confirmation to the high court.

ADVERTISEMENT

Swetnick said in a sworn affidavit that Kavanaugh attended a party in high school where she was drugged and attacked by a series of men in a "gang rape.”

Swetnick was the third woman to come forward with claims of sexual misconduct against Kavanaugh, who fiercely denied the allegations and denounced Swetnick's claims a "joke" during his sworn testimony before the Senate Judiciary Committee late last month.

The tweet came one day after Avenatti endorsed O'Rourke on Twitter, writing, ".@BetoORourke deserves all of our support. He is fighting the good fight every day. He would make an exceptional senator for Texas."

Avenatti's endorsement comes as the lawyer, who is also representing Stormy Daniels in her lawsuit against President Trump Donald John TrumpBiden on Trump's refusal to commit to peaceful transfer of power: 'What country are we in?' Romney: 'Unthinkable and unacceptable' to not commit to peaceful transition of power Two Louisville police officers shot amid Breonna Taylor grand jury protests MORE, continues to fuel speculation that he is mulling a 2020 presidential run.

O'Rourke is giving Cruz an unexpectedly strong challenge in deep-red Texas. Nonpartisan political handicapper, The Cook Political Report, currently rates the race as a toss-up, while a RealClearPolitics average of polling gives Cruz a slight edge in the race.