Twitter, founded in 2006, has gotten a lot of attention in 2017, thanks largely to President Donald Trump. He is known for going on Twitter to air his grievances, express himself and make his opinions public.

And in fact, Trump was the most-tweeted-about global leader in the world and in the United States, according to annual data released by the San Francisco-headquartered technology company Tuesday. (Twitter measured data through Nov. 20, according to an email Twitter sent to CNBC Make It.)

Trump's predecessor, however, President Barack Obama, had two of the three most-liked tweets of the year ("No one is born hating another person because of the color of his skin or his background or his religion..." and "John McCain is an American hero & one of the bravest fighters I've ever known. Cancer doesn't know what it's up against. Give it hell, John."). Obama also had three of the top 10 most-retweeted tweets of 2017. None of Trump's tweets ranked on those lists.

The attention Trump has helped bring to Twitter this year has not come without intense scrutiny. Twitter has been aggressively criticized for not removing at least one particular Trump tweet regarding North Korea. Some felt the tweet threatened nuclear war and as such, was of such a violent nature that should it should be removed. Twitter said the tweet was newsworthy.

Similarly, when Twitter temporarily partially suspended the account of vocal Harvey Weinstein accuser Rose McGowan, the social media company was said to be unfairly censoring content and many called for a boycott. Twitter apologized and said the McGowan content was removed because it included a telephone number, which violated its terms of service and that, in the future, it will do a better job of communicating reasons for removing content. Also, in November, Twitter updated its rules for what is permissible to publish on the platform.

Updated policy tweet

Have a look at the year in review, as it happened on Twitter. The lists are not exclusively dominated by politics, it should be noted. The most retweeted tweet of the year was an attempt to get a year's worth of free chicken nuggets at Wendy's.

Most-retweeted tweets of 2017 (global)

Mos-liked tweets of 2017 (global)

Most-tweeted-about elected world leaders (global)

  1. @RealDonaldTrump
  2. @narendramodi
  3. @NicolasMaduro
  4. @RT_Erdogan
  5. @EmmanuelMacron
  6. @EPN
  7. @mauriciomacri
  8. @theresa_may
  9. @JuanManSantos
  10. @jokowi

Top-tweeted-about US elected officials

  1. @RealDonaldTrump
  2. @VP
  3. @SpeakerRyan
  4. @BarackObama
  5. @TedLieu
  6. @SenJohnMcCain
  7. @SenWarren
  8. @SenateMajLdr
  9. @SenSanders
  10. @SenSchumer
  11. @NancyPelosi
  12. @RepAdamSchiff
  13. @MarcoRubio
  14. @MaxineWaters
  15. @TedCruz

Methodology Note: The Twitter usernames that appeared most frequently in Tweets, including replies and Retweets

Top-followed new US political accounts

  1. @PreetBharara
  2. @SallyQYates
  3. @brhodes
  4. @PeteSouza
  5. @SHSanders45
  6. @AmbassadorRice
  7. @SamanthaJPower
  8. @SecretaryCarson
  9. @BetsyDeVosED
  10. @SecretaryZinke

Most-tweeted activism hashtags in the US

  1. #Resist
  2. #MAGA
  3. #ImpeachTrump
  4. #TrumpTrain
  5. #WomensMarch
  6. #NotMyPresident
  7. #BlackLivesMatter
  8. #NoDAPL
  9. #TakeAKnee
  10. #BoycottNFL

Note: No.s 1 and 2 combine variations on the hashtags, like #Resistance and #MakeAmericaGreatAgain

See also:

Why Twitter won't take down Donald Trump's tweet which North Korea called a 'declaration of war'

Some women call for a boycott of Twitter after actress Rose McGowan is partially suspended

Rose McGowan lashes out at Amazon CEO Jeff Bezos in Twitter tirade about Harvey Weinstein

Like this story? Like CNBC Make It on Facebook.