WASHINGTON, DC  OCTOBER 10: U.S. President Donald Trump  discusses the potential impact of Hurricane Michael during a meeting with Homeland Security Secretary Kirstjen Nielsen and FEMA Administrator Brock Long in the Oval Office of the White House on October 10, 2018 in Washington, DC. Hurricane Michael has recently been upgraded to a category 4 storm. (Photo by Win McNamee/Getty Images)
PHOTO: Win McNamee/Getty Images
WASHINGTON, DC OCTOBER 10: U.S. President Donald Trump discusses the potential impact of Hurricane Michael during a meeting with Homeland Security Secretary Kirstjen Nielsen and FEMA Administrator Brock Long in the Oval Office of the White House on October 10, 2018 in Washington, DC. Hurricane Michael has recently been upgraded to a category 4 storm. (Photo by Win McNamee/Getty Images)
Now playing
02:57
Trump fires back after Roberts rebukes him (2018)
WASHINGTON, DC - MARCH 05: Sen. John Cornyn (R) (R-TX) talks with Sen. Joe Manchin (D-WV) while walking to the U.S. Senate chamber for a vote March 05, 2021 in Washington, DC. The Senate continues to debate the latest COVID-19 relief bill.  (Photo by Win McNamee/Getty Images)
PHOTO: Win McNamee/Getty Images
WASHINGTON, DC - MARCH 05: Sen. John Cornyn (R) (R-TX) talks with Sen. Joe Manchin (D-WV) while walking to the U.S. Senate chamber for a vote March 05, 2021 in Washington, DC. The Senate continues to debate the latest COVID-19 relief bill. (Photo by Win McNamee/Getty Images)
Now playing
02:54
Axelrod breaks down Manchin's surprising move
sinema
PHOTO: CNN
sinema
Now playing
01:50
Senator's move has many on the internet outraged
PHOTO: FBI
Now playing
02:58
Trump State Department official charged in Capitol riot
WASHINGTON, DC - JANUARY 06: U.S. Sen. Paul Gosar (R-AZ) speaks on the floor of the House Chamber during a joint session of congress on January 06, 2021 in Washington, DC. Congress held a joint session today to ratify President-elect Joe Biden's 306-232 Electoral College win over President Donald Trump. A group of Republican senators said they would reject the Electoral College votes of several states unless Congress appointed a commission to audit the election results. (Photo by Drew Angerer/Getty Images)
PHOTO: Drew Angerer/Getty Images
WASHINGTON, DC - JANUARY 06: U.S. Sen. Paul Gosar (R-AZ) speaks on the floor of the House Chamber during a joint session of congress on January 06, 2021 in Washington, DC. Congress held a joint session today to ratify President-elect Joe Biden's 306-232 Electoral College win over President Donald Trump. A group of Republican senators said they would reject the Electoral College votes of several states unless Congress appointed a commission to audit the election results. (Photo by Drew Angerer/Getty Images)
Now playing
02:19
This is what Rep. Gosar was posting days before Capitol riot
John King Magic Wall 0305
PHOTO: CNN
John King Magic Wall 0305
Now playing
02:17
President Biden sending a team to the US-Mexico border
Senior Advisor to the President Jared Kushner  attends a press conference on September 4, 2020, in the Brady Briefing Room of the White House in Washington, DC. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
PHOTO: BRENDAN SMIALOWSKI/AFP/AFP via Getty Images
Senior Advisor to the President Jared Kushner attends a press conference on September 4, 2020, in the Brady Briefing Room of the White House in Washington, DC. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
02:50
Jared Kushner disappears from Trump's inner circle
Rep john garamendi 0305
PHOTO: CNN
Rep john garamendi 0305
Now playing
02:33
Rep. Garamendi: Any lawmaker involved in Capitol riots ought to be thrown out of Congress
Protesters gather at Lincoln Park to demand the Emancipation Memorial be taken down on June 23, 2020 in Washington, DC.
PHOTO: Tasos Katopodis/Getty Images
Protesters gather at Lincoln Park to demand the Emancipation Memorial be taken down on June 23, 2020 in Washington, DC.
Now playing
03:01
Why some people want this Abraham Lincoln statue taken down
psaki
PHOTO: CNN
psaki
Now playing
00:56
Psaki fires back at Trump testing czar over vaccine claims
PHOTO: CNN
Now playing
03:04
Avlon: Pence's op-ed is 'way worse than Stockholm syndrome'
PHOTO: CNN
Now playing
01:35
See what security looks like outside US Capitol
PHOTO: Gov. Cuomo's office
Now playing
03:35
Gov. Andrew Cuomo addresses women's allegations
Cuomo
PHOTO: Gov. Cuomo's Office
Cuomo
Now playing
00:56
Cuomo says he has no plans to resign
Now playing
04:51
Elected Republican who supports Biden's bill speaks out
President Joe Biden speaks during a meeting about cancer in the Oval Office of the White House, Wednesday, March 3, 2021, in Washington. (AP Photo/Alex Brandon)
PHOTO: Alex Brandon/AP
President Joe Biden speaks during a meeting about cancer in the Oval Office of the White House, Wednesday, March 3, 2021, in Washington. (AP Photo/Alex Brandon)
Now playing
01:20
'Neanderthal thinking': Biden on states lifting mask restrictions
(CNN) —  

President Donald Trump fired back Wednesday after Chief Justice John Roberts issued a rare rebuke of the President’s disparaging remarks about federal judges.

“We do not have Obama judges or Trump judges, Bush judges or Clinton judges,” Roberts said in a statement responding to comments Trump made earlier in the week criticizing the US 9th Circuit Court of Appeals. “What we have is an extraordinary group of dedicated judges doing their level best to do equal right to those appearing before them. That independent judiciary is something we should all be thankful for.”

Trump, in a response later Wednesday, stood by his comments from the previous day that prompted Roberts’ statement.

“Sorry Chief Justice John Roberts, but you do indeed have ‘Obama judges,’ and they have a much different point of view than the people who are charged with the safety of our country. It would be great if the 9th Circuit was indeed an ‘independent judiciary,’ but if it is why……” Trump tweeted.

Several minutes later, he continued, “…..are so many opposing view (on Border and Safety) cases filed there, and why are a vast number of those cases overturned. Please study the numbers, they are shocking. We need protection and security - these rulings are making our country unsafe! Very dangerous and unwise!”

Roberts’ comment came in response to an inquiry from The Associated Press. On Tuesday, Trump slammed the 9th US Circuit again, this time after a judge from the Northern District of California – where cases get appealed to the 9th Circuit – issued a temporary restraining order blocking the Trump administration from barring migrants who cross into the US illegally from seeking asylum.

“It’s a disgrace when every case gets filed in the 9th Circuit,” Trump said as part of a lengthy criticism of the court. “That’s not law. Every case in the 9th Circuit we get beaten and then we end up having to go to the Supreme Court like the travel ban and we won. Every case, no matter where it is, they file is practically, for all intents and purposes, they file it in what’s called the 9th Circuit. This was an Obama judge. I’ll tell you what, it’s not going to happen like this anymore.”

Roberts, who then-President George W. Bush tapped to lead the Supreme Court, is the highest authority in the federal judiciary, and his remark was a rare direct response to the head of the Executive Branch.

Speaking at the University of Minnesota Law School in October, Roberts emphasized the Supreme Court’s independence and differences from the other branches.

“I will not criticize the political branches,” Roberts said. “We do that often enough in our opinions. But what I would like to do, briefly, is emphasize how the judicial branch is – how it must be – very different.”

Trump has been a frequent critic of the 9th Circuit, and just a few months into his presidency, he said he was considering breaking up the circuit that covers a slew of Western states, including the key border states of California and Arizona, and Guam.

Several of his most controversial policies have been held up by judges there, and the temporary block on his attempt to rewrite asylum rules marked the latest such instance.

RELATED: John Roberts played the long game. He just won.

In addition to his criticism of the 9th Circuit, Trump has previously attacked Roberts as well.

While he was a presidential candidate, Trump in 2016 called Roberts a “nightmare for conservatives” in an interview on ABC. He also said in the interview that “Justice Roberts could’ve killed Obamacare and should’ve, based on everything – should’ve killed it twice,” a reference in part to Roberts casting the deciding vote in June 2012 to save President Barack Obama’s signature legislative achievement, the Affordable Care Act. Roberts voted again in 2015 in favor of supporting Obamacare.

More concisely, Trump tweeted after Roberts’ first vote in favor of Obamacare in 2012, “Congratulations to John Roberts for making Americans hate the Supreme Court because of his BS.”

This story has been updated to add additional information about President Donald Trump and Supreme Court Chief Justice John Roberts’ relationship.

CNN’s Jeremy Diamond and Ariane de Vogue contributed to this report.