Five former U.S. defense secretaries on Thursday condemned President Donald Trump’s “reckless” firing of the chairman of the Joint Chiefs of Staff and other senior officers and called on Congress to halt any confirmation of their successors.

In a scathing letter, they also accused Trump of seeking to make the apolitical U.S. military an instrument of partisan politics and using firings, which extend to the top army, navy and air force lawyers, to “remove legal constraints on the president’s power.”

The letter was written by four defense secretaries who served under Democratic administrations as well as James Mattis, a retired Marine general who served as Trump’s first Pentagon chief from 2017 to 2019.

“President Trump’s actions undermine our all-volunteer force and weaken our national security,” they wrote.

Beyond Mattis, the letter’s signatories – William Perry, Leon Panetta, Chuck Hagel and Lloyd Austin – served under the Democratic presidential administrations of Bill Clinton, Barack Obama and Joe Biden.

Trump announced the firings late on Friday but his administration has yet to clarify in any detail what caused the unprecedented shakeup, which also included the dismissal of the head of the Navy, Admiral Lisa Franchetti, the first female officer to lead a military service.

Air Force General C.Q. Brown was only the second Black officer to become chairman of the Joint Chiefs of Staff, and he was less than halfway through his four-year term.

“Mr. Trump’s dismissals raise troubling questions about the administration’s desire to politicize the military,” they wrote. “We, like many Americans – including many troops – are therefore left to conclude that these leaders are being fired for purely partisan reasons.”

The White House did not immediately respond to a request for comment on the letter.

Defense Secretary Pete Hegseth, a fierce opponent of diversity initiatives in the Pentagon he says are discriminatory, prior to his nomination had questioned whether Brown had only gotten the job because he was Black.

Asked about the firings, Hegseth told Fox News on Sunday that Brown was honorable but “not the right man for the moment” and said Trump had the right to pick his own team.

The former defense secretaries called on the U.S. House of Representatives and the Senate to hold hearings to “assess the national security implications” of Trump’s dismissals. Trump’s Republican Party holds a majority in both chambers of Congress.

Since taking office for the second time on January 20, Trump has fired and sidelined hundreds of civil servants and top officials at agencies in his first steps toward downsizing the bureaucracy and installing more loyalists.

The letter cautioned that the actions at the Pentagon could deter Americans from choosing a life in the military, should their careers be judged through the lens of partisan politics. It could also have a chilling effect on speaking “truth to power,” they cautioned.

“We write to urge the U.S. Congress to hold Mr. Trump to account for these reckless actions and to exercise fully its Constitutional oversight responsibilities,” they wrote.

Trump picked Dan Caine, a retired three-star general, to replace Brown.

Caine, a retired F-16 pilot, will be promoted to four-star general, and then have to undergo a potentially grueling Senate confirmation process to get a four-year term as the uniformed head of the nation’s military.

“Senators should refuse to confirm any new Defense Department nominations, including that of retired Lt. General Dan Caine as the next Chairman of the Joint Chiefs of Staff,” the former defense secretaries wrote.