Navy Special Operations Chief Edward Gallagher, left, walks with his wife, Andrea Gallagher as they arrive to military court on Naval Base San Diego, Monday, July 1, 2019, in San Diego. The trial continued Monday in the court-martial of the decorated Navy SEAL, who is accused of stabbing to death a wounded teenage Islamic State prisoner and wounding two civilians in Iraq in 2017. He has pleaded not guilty to murder and attempted murder, charges that carry a potential life sentence. (AP Photo/Julie Watson)
Julie Watson/AP
Navy Special Operations Chief Edward Gallagher, left, walks with his wife, Andrea Gallagher as they arrive to military court on Naval Base San Diego, Monday, July 1, 2019, in San Diego. The trial continued Monday in the court-martial of the decorated Navy SEAL, who is accused of stabbing to death a wounded teenage Islamic State prisoner and wounding two civilians in Iraq in 2017. He has pleaded not guilty to murder and attempted murder, charges that carry a potential life sentence. (AP Photo/Julie Watson)
Now playing
01:22
Jury finds Navy SEAL Gallagher not guilty of murder
Rep. Marjorie Taylor Greene (R-GA) speaks during a press conference outside the U.S. Capitol on February 5, 2021 in Washington, DC. The House voted 230 to 199 on Friday evening to remove Rep. Marjorie Taylor Greene (R-GA) from committee assignments over her remarks about QAnon and other conspiracy theories.
Drew Angerer/Getty Images
Rep. Marjorie Taylor Greene (R-GA) speaks during a press conference outside the U.S. Capitol on February 5, 2021 in Washington, DC. The House voted 230 to 199 on Friday evening to remove Rep. Marjorie Taylor Greene (R-GA) from committee assignments over her remarks about QAnon and other conspiracy theories.
Now playing
03:20
Marjorie Taylor Greene lashes out at media after backlash over controversial caucus
AP
Now playing
03:16
Maxine Waters: Jim Jordan is a bully and I shut him down
US Representative Marjorie Taylor Greene, Republican of Georgia, leaves her office on Capitol Hill on February 4, 2021 in Washington, DC.
NICHOLAS KAMM/AFP/Getty Images
US Representative Marjorie Taylor Greene, Republican of Georgia, leaves her office on Capitol Hill on February 4, 2021 in Washington, DC.
Now playing
03:51
Marjorie Taylor Greene launching 'America First' caucus
US President Joe Biden delivers remarks on Russia at the White House in Washington, DC on April 15, 2021. - The United States announced sanctions and the expulsion of 10 Russian diplomats Thursday in retaliation for what Washington says is the Kremlin's US election interference, a massive cyberattack and other hostile activity.
JIM WATSON/AFP/Getty Images
US President Joe Biden delivers remarks on Russia at the White House in Washington, DC on April 15, 2021. - The United States announced sanctions and the expulsion of 10 Russian diplomats Thursday in retaliation for what Washington says is the Kremlin's US election interference, a massive cyberattack and other hostile activity.
Now playing
02:22
White House backtracks on refugees decision after criticism
Biden speaks from the Treaty Room in the White House on April 14, 2021 in Washington, DC.
Andrew Harnik/Pool/Getty Images
Biden speaks from the Treaty Room in the White House on April 14, 2021 in Washington, DC.
Now playing
02:44
'National embarrassment': Biden reacts to mass shootings
MOSCOW, RUSSIA - APRIL 15:  Russian President Vladimir Putin (L) talks to talks to Foreign Minister Sergey Lavrov during a meeting with Uzbekistan President Islam Karimov in the Kremlin on April 15, 2013 in in Moscow, Russia. Karimov is on a state visit to Russia. (Photo by Sasha Mordovets/Getty Images)
Sasha Mordovets/Getty Images
MOSCOW, RUSSIA - APRIL 15: Russian President Vladimir Putin (L) talks to talks to Foreign Minister Sergey Lavrov during a meeting with Uzbekistan President Islam Karimov in the Kremlin on April 15, 2013 in in Moscow, Russia. Karimov is on a state visit to Russia. (Photo by Sasha Mordovets/Getty Images)
Now playing
02:07
Russia to expel 10 US diplomats in 'tit-for-tat response' to Biden sanctions
Now playing
03:10
Avlon: Here's what we know 100 days since the Capitol riot
A Russian flag flies next to the US embassy building in Moscow on October 22, 2018. - US national security advisor John Bolton is in Moscow holding meetings with senior Russian officials following Washington's weekend announcement of withdrawal from the Cold War-era Intermediate-Range Nuclear Forces Treaty, known as the INF. (Photo by Mladen ANTONOV / AFP)        (Photo credit should read MLADEN ANTONOV/AFP via Getty Images)
Mladen Antonov/AFP/Getty Images
A Russian flag flies next to the US embassy building in Moscow on October 22, 2018. - US national security advisor John Bolton is in Moscow holding meetings with senior Russian officials following Washington's weekend announcement of withdrawal from the Cold War-era Intermediate-Range Nuclear Forces Treaty, known as the INF. (Photo by Mladen ANTONOV / AFP) (Photo credit should read MLADEN ANTONOV/AFP via Getty Images)
Now playing
02:17
Political scientist: US-Russia relations are in the toilet
WASHINGTON, DC - JUNE 13: Rep. Michelle Lujan Grisham (D-NM) speaks during a news conference on immigration to condemn the Trump Administration's "zero tolerance" immigration policy, outside the US Capitol on June 13, 2018 in Washington, DC. (Photo by Toya Sarno Jordan/Getty Images)
Toya Sarno Jordan/Getty Images
WASHINGTON, DC - JUNE 13: Rep. Michelle Lujan Grisham (D-NM) speaks during a news conference on immigration to condemn the Trump Administration's "zero tolerance" immigration policy, outside the US Capitol on June 13, 2018 in Washington, DC. (Photo by Toya Sarno Jordan/Getty Images)
Now playing
02:39
Governor settles with former campaign staffer who accused her of sexual mistreatment
pool/cnn
Now playing
01:56
Hear what Dr. Gupta said when Cruz went maskless before
Now playing
02:30
Biden's decision to withdraw from Afghanistan is personal for this lawmaker
President Joe Biden speaks from the Treaty Room in the White House on Wednesday, April 14, 2021, about the withdrawal of the remainder of U.S. troops from Afghanistan.=
Andrew Harnik/AP
President Joe Biden speaks from the Treaty Room in the White House on Wednesday, April 14, 2021, about the withdrawal of the remainder of U.S. troops from Afghanistan.=
Now playing
02:10
Why Biden made his Afghanistan announcement in this particular room
U.S. President Joe Biden speaks from the Treaty Room in the White House about the withdrawal of U.S. troops from Afghanistan on April 14, 2021 in Washington, DC. President Biden announced his plans to pull all remaining U.S. troops out of Afghanistan by September 11, 2021 in a final step towards ending America's longest war.
Andrew Harnik/Pool/Getty Images
U.S. President Joe Biden speaks from the Treaty Room in the White House about the withdrawal of U.S. troops from Afghanistan on April 14, 2021 in Washington, DC. President Biden announced his plans to pull all remaining U.S. troops out of Afghanistan by September 11, 2021 in a final step towards ending America's longest war.
Now playing
01:03
Biden: It's time to end the forever war
Kinzinger
CNN
Kinzinger
Now playing
05:56
What Republican lawmaker fears after US troops leave Afghanistan
Rep. Matt Gaetz, R-Fla., questions witnesses during a House Armed Services Committee hearing on Capitol Hill, Wednesday, April 14, 2021, in Washington.
Manuel Balce Ceneta/AP
Rep. Matt Gaetz, R-Fla., questions witnesses during a House Armed Services Committee hearing on Capitol Hill, Wednesday, April 14, 2021, in Washington.
Now playing
02:59
Women detail late-night parties with Gaetz
(CNN) —  

President Donald Trump on Wednesday ordered top Navy officials to rescind medals awarded to the prosecutors who unsuccessfully tried Navy SEAL team leader Eddie Gallagher for murder.

Trump, who has previously sided with Gallagher, slammed the prosecutors for “giving immunity in a totally incompetent fashion” in the course of the case and for having “difficulty with respect to information that may have been obtained from opposing lawyers.” The President said the Navy lawyers had been “ridiculously given a Navy Achievement Medal.”

“I have directed the Secretary of the Navy Richard Spencer & Chief of Naval Operations John Richardson to immediately withdraw and rescind the awards,” Trump tweeted.

The Secretary of the Navy is pulling the medals awarded to the Navy prosecution team, a Navy official told CNN. The official said it is within Spencer’s authority to rescind the awards.

The President’s criticisms appeared to stem from prosecutors’ decision to give immunity to a key witness in the case who testified that he – not Gallagher – had killed the ISIS captive, as well as the former lead prosecutor’s improper use of email software in emails to defense lawyers. That prosecutor was removed from the case.

Trump’s order marked a rare and highly unusual intervention by a US President in the awarding of such commendations.

The Navy and Marine Corps Achievement Medal is typically awarded to personnel for accomplishments that do not rise to the level of the more prestigious Navy and Marine Corps Commendation Medal, according to John Kirby, a CNN diplomatic and military analyst.

“I can’t remember a time when a president involved himself in an award decision at this low a level,” Kirby, a retired rear admiral, said.

The award “is typically given to junior officers and enlisted personnel and largely applies to noteworthy administrative and/or organizational accomplishments” and unit commanders typically hold discretion to award the medal.

Kirby argued that rescinding the award so publicly “unnecessarily demoralizes and demeans the men and women who received those medals, as well as the superior officers who saw fit to award them.

“Once again, he risks further politicizing the military,” Kirby added.

Gallagher was found not guilty earlier in July of murdering a captive ISIS fighter and attempting to murder Iraqi civilians. A jury acquitted him of nearly all charges, but found him guilty of posing for photos with the captive’s body.

Gallagher became a cause celebre in some conservative circles and his trial soon drew Trump’s attention, with the commander in chief ordering that Gallagher be moved to “less restrictive confinement” while awaiting trial. Trump then cheered the not-guilty verdict, tweeting “congratulations” to Gallagher and his family.

“Glad I could help!” the President tweeted.