U.S. President Barack Obama and Donald Trump met at the White House in a first attempt to turn their political rivalry into a smooth transfer of power.

In a meeting in the Oval Office on Thursday, President Obama said it’s time to unite.

“I believe that it is important for all of us, regardless of party and regardless of political preferences, to now come together, work together, to deal with the many challenges that we face.”

He said to Trump, “We now are going to, want to do everything we can to help you succeed, because if you succeed, the country succeeds.”

President-elect Trump thanked Obama and said the meeting that was supposed to last ten minutes actually went on for an hour and a half.

He then told Obama, “It was a great honour being with you and I look forward to being with you for many more times in the future.”

Despite their cordial behaviour, it’s no secret the two men have a long history of bitter insults and public condemnation, even though the two had never met before this meeting.

Here’s a look at some of the most contentious moments between the outgoing President Obama and his successor Donald Trump.

Birther controversy

The bitter history between President Obama and Donald Trump dates back to 2011, when the “birther” controversy took root. Donald Trump relentlessly questioned whether President Obama was born in the United States. He also pushed for the president to release his birth certificate, an act which many have called “racist.”

Release of birth certificate

President Obama eventually released his birth certificate, which many say was the result of Donald Trump’s relentlessness. But Obama didn’t take the controversy sitting down. When he released his long-form birth certificate, he took a jab at the billionaire businessman saying, "We're not going to be able to solve our problems if we get distracted by sideshows and carnival barkers."

Still, Trump continued to question Obama’s nationality, most recently in January.

In an interview when he was asked if he believed President Obama was truly an American citizen, he said, "Who knows? Who cares right now? We're talking about something else, OK? I mean, I have my own theory on Obama. Someday I'll write a book."

But finally, this past September while on the campaign trail, in an abrupt change of heart, Trump declared, "President Barack Obama was born in the United States, period." Still, he made no apology for the five years he claimed otherwise.

Contentious relationship ever since

Ever since the “birther” controversy gained steam, the two men have hurled insults at each other in the press. At the White House Correspondents’ Association dinner in 2011, President Obama had some fun with the controversy stirred by Trump. He walked out to the song “Real American” by Rick Derringer and even showed a clip from “The Lion King,” saying it was from his “long-form” birth video.

Obama also joked about what could happen if Trump ever made it to the White House, including a suggestion the real estate developer would turn it into a tacky casino.

Election season barbs

In August, President Obama encouraged Republicans to turn on their nominee, whom he called "unfit" and "woefully unprepared" to serve in the White House.

In response,Trump tweeted that "President Obama will go down as perhaps one of the worst presidents in the history of the United States!"

Release of controversial video

After the public release of a 2005 video in which Trump is heard talking about assaulting women, first lady Michelle Obama also started taking shots at Trump.

While addressing Trump’s controversial candid comments she said, "I can't stop thinking about this. It has shaken to me to my core in a way that I couldn't have predicted.” She went on to say the comments were indicative of Trump’s long history of disrespecting women.

Election promises

During the election, Donald Trump made it clear that, if he was elected, he would reverse many of President Obama’s policies, including Obamacare and the Trans-Pacific Partnership trade deal.

Social media weighs in on meeting

Given all the history between the two men, people were quick to comment about the Oval Office meeting on social media.