Spicer quit in protest over the hiring of a new White House communications director, NY financier Anthony Scaramucci, objecting to what Spicer considered his lack of qualifications, as well as the direction of the press operation, according to people familiar with the situation.
When faced with a tough question at the end of June about whether or not President Trump can be considered a role model after he posted a harsh tweet about a news anchor's face lift, Sanders didn't hesitate to say, "I think we all have one ideal role model and when I'm asked that question I point to God".
Trump, who watches the press briefings closely, in a statement saluted Spicer's "great ratings" on TV and said he was "grateful for Sean's work on behalf of my administration and the American people".
Talking about Spicer's resignation, Sanders said the former understood that the President wanted to "bring in and add new people to the team" and said it "speaks volumes about who he is" in stepping down and letting the communications team to start anew.
As his first act on the job, Scaramucci, a polished television commentator and Harvard Law graduate, announced from the White House briefing room that Sarah Huckabee Sanders would take Spicer's job.
Scaramucci called Trump a "hack politician" in 2015 as at that time he was supporting Republican presidential candidates Scott Walker and Jeb Bush.
"It was one of the biggest mistakes I made", Scaramucci said.
"It was a no-win situation for Sean Spicer".
A Wall Street personal, Scaramucci reiterated his admiration for Trump and his administration over and over again during the briefing while speaking to reporters about his excitement level in taking over the job.
He has also previously supported tighter gun controls, which Mr Trump has opposed. And despite the reports Priebus wasn't happy with him being given the position, both man publicly said there's no friction between them. He's also been considered as head of the White House Office of Public Engagement. The cable channel retracted a story about Scaramucci and fired three journalists.
Spicer's resignation marks a sudden end to a rocky tenure.