The resignation of Sean Spicer, the embattled White House press secretary, ends a tumultuous tenure attempting to defend President Donald Trump.
"It's been an honour and a privilege to serve @POTUS @realdonaldtrump & this amazing country," he tweeted.
Spicer's departure after six months and a day in the post was made public after the appointment of Anthony Scaramucci as White House communications director.
Spicer reportedly told friends he would resign if Scaramucci, a Wall Street trader and TV personality, was chosen for the top communications role. Scaramucci takes over from Mike Dubke, who resigned in May. Sarah Huckabee Sanders, Spicer's deputy, has become press secretary.
"This is obviously a difficult situation but I wish him well," said Scaramucci in the White House press room, repeatedly professing his "love" for Spicer and Trump. He praised the President and described chief of staff Reince Priebus, who reportedly opposed his appointment, as "like a brother".