Top National Security Council official Mira Ricardel is exiting her post after an extraordinary, high-profile clash with first lady Melania Trump Melania TrumpTrump privately blamed Black Americans for lacking initiative: report The Hill's 12:30 Report: Ginsburg lies in repose Melania Trump: Ginsburg's 'spirit will live on in all she has inspired' MORE.

The White House said in a statement Wednesday that Ricardel will “transition to a new role within the administration,” but did not specify her new job.

ADVERTISEMENT

“The president is grateful for Ms. Ricardel’s continued service to the American people and her steadfast pursuit of his national security priorities,” said White House press secretary Sarah Huckabee Sanders.

The announcement capped off a tense day of speculation about Ricardel's future after the first lady's office took the unusual step of publicly calling for her ouster. It appears to be a compromise solution, since national security adviser John Bolton reportedly fought to save Ricardel, his top deputy.

But her removal from the White House is a sign of growing upheaval within the White House and shed light on how the first lady's office has become involved.

East Wing staff reportedly clashed with Ricardel over seats on government aircraft during Melania Trump's trip to Africa last month. The first lady's team then accused Ricardel, who helped coordinate the visit, of spinning negative stories about Melania Trump.

“It is the position of the Office of the First Lady that she no longer deserves the honor of serving in this White House,” Stephanie Grisham, a spokesman for Melania Trump, said in a statement Tuesday.

That triggered an awkward deadlock at the White House. Ricardel remained at work on Tuesday as Bolton objected to her ouster and was reportedly at the office on Wednesday before her transition was announced.

Bolton brought Ricardel on board in May to serve as his No. 2 on the National Security Council. She earned a reputation as an enforcer and fierce bureaucratic infighter, clashing with White House chief of staff John Kelly John Francis KellyMORE and Defense Secretary James Mattis James Norman MattisBiden courts veterans amid fallout from Trump military controversies Trump says he wanted to take out Syria's Assad but Mattis opposed it Gary Cohn: 'I haven't made up my mind' on vote for president in November MORE.

But it appears Ricardel's conflict with Melania Trump was the final straw. During her trip to Africa in October, the first lady told ABC News that she told her husband there are people on his team that she did not trust.

“Well, some people, they don’t work there anymore,” the first lady said of those people, who added there are still people in the West Wing that do not have her trust.

“It’s harder to govern. You always need to watch your back,” she said.

The blow-up over Ricardel comes as Trump is weighing a broad staff shakeup that could include Homeland Security Secretary Kristjen Nielsen and Kelly, who is one of her fiercest defenders in the administration.

Updated 7:22 p.m.