As president, Barack Obama repeatedly mocked Donald Trump’s political ambitions, laughing at the idea of Trump ever winning the presidency.

Obama mocked Trump at the 2011 White House Correspondents Dinner for calling into question whether he was born in America. Hawaii officials had recently authorized the release of Obama’s longform birth certificate to put the matter to rest. Obama viciously mocked Trump for the controversy, before mocking the idea of Trump ever serving in the White House.

From the White House transcript of the event:

Now, I know that he’s taken some flak lately, but no one is happier, no one is prouder to put this birth certificate matter to rest than the Donald. (Laughter.) And that’s because he can finally get back to focusing on the issues that matter –- like, did we fake the moon landing? (Laughter.) What really happened in Roswell? (Laughter.) And where are Biggie and Tupac? (Laughter and applause.) But all kidding aside, obviously, we all know about your credentials and breadth of experience. (Laughter.) For example — no, seriously, just recently, in an episode of Celebrity Apprentice — (laughter) — at the steakhouse, the men’s cooking team cooking did not impress the judges from Omaha Steaks. And there was a lot of blame to go around. But you, Mr. Trump, recognized that the real problem was a lack of leadership. And so ultimately, you didn’t blame Lil’ Jon or Meatloaf. (Laughter.) You fired Gary Busey. (Laughter.) And these are the kind of decisions that would keep me up at night. (Laughter and applause.) Well handled, sir. (Laughter.) Well handled. Say what you will about Mr. Trump, he certainly would bring some change to the White House. Let’s see what we’ve got up there. (Laughter.) (Screens show “Trump White House Resort and Casino.”)

WATCH:

A month before the 2016 election, Obama mocked Trump’s campaign on “Jimmy Kimmel.” Obama read a tweet from Trump saying that Obama “will go down as perhaps the worst president in the history of the United States,” before turning Trump into a punchline. “Really? Well, @realDonaldTrump, at least I will go down as a president,” Obama said, dropping his phone on the floor for dramatic effect.

A year into the Trump presidency, Obama’s legacy is taking a beating.

Trump has overseen the dismantling of several of Obamacare’s most controversial aspects. The tax cuts package Trump signed last month included a provision repealing Obamacare’s individual mandate. Trump also rolled back the Obama administration’s contraception mandate, which forced religious groups like the Little Sisters of the Poor to provide birth control for all employees, regardless of conscientious objections.

Trump’s Department of Education rolled back several measures that conservatives had decried as federal overreach. The Trump administration repealed the Obama-era mandate that required all public schools to implement transgender bathroom policies and speech codes. The Trump administration also revoked a legally dubious Title IX guidance that regulated sexual assault proceedings on college campuses.

In July, Trump announced the United States would be pulling out of the Paris Climate Accords, which Trump blasted as a threat to American sovereignty. Trump’s Environmental Protection Agency (EPA) rolled back the Obama administration’s Waters of the US rule, which drastically increased federal regulations of streams, and repealed the Obama-era Clean Power Plan, which increased environmental regulations on coal-fired plants. Trump approved both the Keystone XL and Dakota pipelines that Obama had rejected.

Last month, Trump’s Federal Communications Commission (FCC) rolled back the Obama-era Net Neutrality policy that increased federal regulation of the Internet.

Trump’s foreign policy has made for a similar contrast with Obama’s. (RELATED: Five Ways Trump’s New National Security Strategy Is A Rejection Of Obama’s)

WATCH FOR MORE ON OBAMA VS TRUMP FOREIGN POLICY:

Trump has embraced a distinctly more pro-Israel approach than his predecessor and has embraced a much harder line on Iran, which Obama sought to appease. Trump announced last month that the US recognizes Jerusalem as the capital of Israel, something Obama had promised to do, but never actually followed through.

I fulfilled my campaign promise – others didn’t! pic.twitter.com/bYdaOHmPVJ — Donald J. Trump (@realDonaldTrump) December 8, 2017

The Trump administration announced in October that Trump planned on decertifying the Iran nuclear deal, which was a pillar of Obama’s foreign policy legacy. Trump’s national security strategy released last month slammed Iran, which is the number one state sponsor of terrorism, as the number one threat to peace in the Middle East.

The bad news for Obama: Trump has at least three more years to get the last laugh.