ABC News August 12, 2020

When Kamala Harris took on Brett Kavanaugh and Bill Barr

WATCH: How Kamala Harris will impact the 2020 presidential race

In one of his first attacks on former Vice President Joe Biden's pick for vice-president, President Donald Trump criticized Sen. Kamala Harris as being “extraordinarily nasty” during the confirmation hearings for his then-Supreme Court nominee Brett Kavanaugh.

“She was nasty to a level that was just a horrible thing ... the way she treated now Justice Kavanaugh, and I won't forget that soon,” he told reporters Tuesday afternoon.

The forceful questioning by Harris, a former prosecutor, went viral on social media in the days after her exchange and it may be how she's best known to many Americans and it's a reason supporters say she will be a formidable opponent of both Trump and Vice President Mike Pence.

Andrew Harnik/AP, FILE
Judge Brett Kavanaugh speaks before the Senate Judiciary Committee on Capitol Hill in Washington, Sept. 4, 2018.

The California Democrat, who sits on the Senate Judiciary Committee, made a a splash when she asked Kavanaugh if he had discussed special counsel Robert Mueller's probe with any employees of a law firm run by Trump’s lawyer Marc Kassovitz.

MORE: Biden and Harris to make first appearance as historic Democratic ticket

“Well, is there a person you're talking about?” Kavanaugh asked Harris.

“I'm asking you a very direct question. Yes or no?” she responded.

After a continued back and forth, Kavanaugh told the senator, “I would like to know the person you're thinking of.”

“I think you're thinking of someone and you don't want to tell us,” Harris shot back.

Jacquelyn Martin/AP
Sen. Kamala Harris, D-Calif., questions President Donald Trump's Supreme Court nominee, Brett Kavanaugh, on the third day of his Senate Judiciary Committee confirmation hearing, Sept. 6, 2018, on Capitol Hill in Washington, to replace retired Justice Anthony Kennedy.

But an exchange that gained even greater attention came when asked Kavanaugh about reproductive rights.

“Can you think of any laws that give government the power to make decisions about the male body?” she asked.

Kavanaugh froze for several seconds before responding, “I'm happy to answer a more specific question.”

“Male versus female,” Harris replied.

After a back and forth, Kavanaugh told Harris, “I'm not thinking of any right now, senator.”

The exchanges received considerable play on late-night talk shows and on social media.

MORE: Kamala Harris Is Biden’s VP Pick — Here’s What It Means For The Election And Beyond

Harris similarly garnered attention a year later during Attorney General William Barr’s hearing on the findings of Mueller’s report on Russian interference in the 2016 election.

When Harris asked if the president or anyone at the White House had ever asked or suggested that he open a Justice Department investigation into anyone, Barr, acting uncertain, at first repeated part of her question, "the president or anyone else..."

"It seems you'd remember something like that and be able to tell us," Harris said pointedly, implying he was being evasive.

“Yeah, but I’m trying to grapple with the word ‘suggest,’" Barr responded. "They have not asked me to open an investigation."

"Perhaps they suggested? Hinted? Inferred? Harris pressed him.

When Barr failed to finish his answer, she said, "You don't know," sarcastically.

Later, she asked Barr if he, Deputy Attorney General Rod Rosenstein or anyone in his office had questioned or reviewed the underlying evidence supporting the report's findings. Barr told Harris he had not.

Harris responded, expressing disbelief and questioning Barr's decision to accept charging recommendations without reviewing underlying evidence when making a "critical decision" about "the person who holds the highest office in the land and whether or not that person committed a crime."

"I think you've made it clear, sir, that you have not looked at the evidence and we can move on," Harris said.

ABC News' Soo Rin Kim contributed to this report.