Stephen Colbert got booted off his own show Monday night and replaced at the anchor desk by none other than President Barack Obama.

The commander in chief decided Colbert had taken one too many shots at his job in the past, and it was now time to return the favor.

"I, Stephen Colbert, have never cared for our president," Obama said as he impersonated Colbert on "The Colbert Report."

>> Read more trending stories

During his more presidential version of Colbert's "The Word" monologue segment, Obama took some lighthearted shots at the Affordable Care Act while jokes about himself, Republicans and even Fox News popped up on the screen beside him.

"Remember the original HealthCare.gov site? I think that's where Disney got the idea for 'Frozen,'" Obama said as he impersonated Colbert.

The bit was, of course, partly meant to put the spotlight on open enrollment for health insurance in 2015.

But once Obama was done poking fun at Colbert, it was the late-night show host's turn to grill the POTUS about other issues, including having four defense secretaries in just six years.

But as The Washington Times pointed out, the president managed to focus most of the conversation on the economy, health care, immigration reform and midterm election results, like he often does during his late-night TV appearances.

Obama's first appearance on the show as president marked the beginning of the final two weeks of "The Colbert Report." The show's final episode will air Dec. 18.

Colbert is set to take over for David Letterman on CBS's "Late Show" next year. It's unclear exactly when his first appearance on the show will take place. (Video via CBS / "Late Show")