White House press secretary Sean Spicer resigned Friday after President Trump hired Anthony Scaramucci as his new communications director.
Spicer confirmed his resignation on Twitter, saying he would remain in his post through next month.
"It's been an honor & a privilege to serve @POTUS @realDonaldTrump & this amazing country. I will continue my service through August," he wrote.
The New York Times was the first to report the news.
Trump requested that Spicer stay on, but Spicer declined to do so and told the president that hiring Scaramucci was a major mistake, the Times reported.
Spicer told The Washington Post he will stay in his post for a couple of weeks to assist with the transition and when he leaves, he will "continue to advance the president's agenda."
He was scheduled to make his first post-resignation television appearance on Friday with pro-Trump Fox News host Sean Hannity.
The White House said there will be an on-camera press briefing on Friday with deputy press secretary Sarah Huckabee Sanders.
Spicer's resignation could point to more changes coming at a White House increasing working under the cloud of investigations looking at Russia's involvement in last year's election.
Spicer is a former spokesman and strategist from the Republican National Committee, where he worked with Reince Priebus, Trump's chief of staff and a former RNC chairman.
Priebus has also been dogged with rumors that he could be on the way out of the White House, but he told the Associated Press on Friday that he was "100 percent" in support of the Scaramucci hiring.
He told the AP that he and Scaramucci are "good friends" and that it's "all good here" at the White House.
Earlier, NBC and other media outlets had reported that the Scaramucci hiring was opposed by Priebus.
Scaramucci is a Wall Street financier and longtime Trump supporter. He is not a Washington veteran, setting him apart from Spicer, Priebus and the man Scaramucci would succeed, Michael Dubke.
Spicer has had a colorful history as the White House press secretary.
His daily on-camera briefings drew huge audiences on cable television and became must-see television. He was also famously parodied by Melissa McCarthy on "Saturday Night Live."
Spicer was a combative press secretary on camera who frequently tangled with reporters — and sometimes his comments got him in trouble.
He apologized after making a reference to "Holocaust centers" instead of concentration camps during an ill-fated comparison of Adolf Hitler and Syrian President Bashar Assad. Spicer also mistakenly said that Hitler had not used chemical weapons on his own people in criticizing Assad's use of them.
In recent months, however, on-camera press briefings became less common, as Spicer turned his attention to communication director duties and controversies mounted around the investigations into possible collusion between the Trump campaign and Russia during the presidential race.
Deputy White House press secretary Sarah Huckabee Sanders had largely filled in for Spicer at daily press briefings.
Spicer had been acting as the White House communications director since Dubke resigned from the post in May.