The same Twitter post was the second most re-tweeted of the year, behind a tweet from a teenager named Carter Wilkerson trying to win a year's supply of chicken nuggets from fast food chain Wendy's.
The top four new US political accounts were some of Trump's most forceful critics, led by @PreetBharara, the former federal prosecutor he fired.
Despite the record number of likes, Obama's Mandela tweet earned only around 1.7 million retweets and so is second on the list, eclipsed by a post about fast food.
US President Donald Trump is noted for his use of Twitter, but it was his predecessor Barack Obama who made it into the top 10 for the most retweeted tweets of 2017.
To add an insult to injury, Obama was featured in the list not once, not twice, not thrice, but four times.
The third most-retweeted tweet became one from the Penn State Interfraternity Council pledging 15 cents for every retweet.
Ten days later when Trump took office, Obama tweeted, "It's been the honor of my life to serve you".
Twitter revealed the year's most liked and retweeted tweets on Tuesday, reflecting how a nation bitterly divided between Republicans and Democrats is likewise split on social media.
According to Twitter's year-in-review list, Obama's tweet reacting to racist violence in Charlottesville, Virginia, in August was not only the most-liked tweet of 2017 but also in the history of the micro-blogging platform that has over 300 million users. The tweet drew over 1.1 million retweets. "Consider it done", was the 16-year-old's confident response. They all made the biggest splash on Twitter this year.
The remaining two were posted during and immediately after the transitional period, when Donald Trump moved into the White House. So therefore ain't no invite.
Pop star Ariana Grande's message on May 22, the day a terrorist attack on her Manchester concert left almost two dozen people dead and hundreds injured, drew almost 3 million likes and more than 1 million retweets. It was also the most liked tweet of all time. As President Trump is learning, exploring Twitter's outer limits can only take you so far.