Sean Spicer explained on Wednesday that he opposed Anthony Scaramucci taking on a communications director position in the White House not because they did not get along, but because he did not think Scaramucci was qualified for the job.

"This Anthony Scaramucci character. You didn't get along with the guy, obviously," Jimmy Kimmel said on "Jimmy Kimmel Live."

"Actually, that's not true," Spicer responded.

"I'd known Anthony from the campaign," Spicer said. He'd done a lot of surrogate work for us on different television networks supporting the president and the campaign. We had known each other through the campaign."

"But when he was hired, that's what you said -- ," Kimmel started.

"Right, but it wasn't personal, it wasn't that I had anything against Anthony," Spicer said. "I didn't feel -- Anthony has been a very successful -- in business he's made a ton of money but I just didn't feel as if he had the qualifications or background to work in the communications office."

"And my view was is that if I'm going to have to partner with somebody that I don't believe had the skill set to execute the job, it was incumbent upon me to either step aside or make my voice known," Spicer continued. "I did. I told the president I thought it was an -- if hadn't a clean slate, if he wanted a change, that I respected that. But it was in his best interests to have me step aside completely and let Anthony move forward."

Kimmel then asked Spicer if he was "cackling like a maniac" when he read the vulgar New Yorker interview Scaramucci did before he was let go from the White House.

"I don't think it's right to relish in somebody else's problems. And so I just as a person, I don't think that's right. But again, I think it proved my point. And that to do this job is one in which you have to have the proper background."

Spicer resigned as White House press secretary in July after Scaramucci had been named the White House communications director. Scaramucci was fired from the White House 10 days after taking on the position.