Mr. Scaramucci is expected to play a visible role as one of Mr. Trump’s defenders on television. But Mr. Spicer and other officials questioned his hiring as communications director.

White House press secretary Sean Spicer, President Donald Trump’s embattled spokesman during the first six months of his presidency, is resigning his position, according to two people with knowledge of the decision.

Mr. Spicer’s decision appears linked to the appointment of a new White House communications director, New York financier Anthony Scaramucci. The people with knowledge of the decision spoke on condition of anonymity because they were not authorised to discuss the personnel matter publicly.

Mr. Spicer’s daily press briefings had become must-see television until recent weeks when he took on a more behind-the-scenes role. Deputy press secretary Sarah Huckabee Sanders has largely taken over the briefings, turning them into an off-camera event.

Mr. Spicer spent several years leading communications at the Republican National Committee before helping Trump’s campaign in the general election. He is close to White House chief of staff Reince Priebus, the former RNC chair, and several of the lower-ranking aides in the White House communications shop.

Mr. Scaramucci is expected to play a visible role as one of Mr. Trump’s defenders on television. But Mr. Spicer and other officials questioned his hiring as communications director ahead of the President’s push to overhaul the tax system and other policy issues. One of the officials said Mr. Spicer objected to Mr. Trump’s vision for the future of the press operation.

Mr. Spicer’s tenure got off to a rocky start. On Mr. Trump’s first full day in office, Mr. Spicer lambasted journalists over coverage of the crowd size at the inauguration and stormed out of the briefing room without answering questions.