Donald Glover sarcastically thanked President Donald Trump at the Emmys during his acceptance speech for Best Lead Actor in a Comedy.

Earlier Sunday, the Atlanta star became the first African-American to win an Emmy for Outstanding Directing for a Comedy Series.

During his speech for Best Lead Actor in a Comedy, he said: 'I want to thank Trump for making black people number one on the most oppressed list. He's the reason I am probably up here.'

Donald Glover accepted Outstanding Lead Actor in a Comedy Series for Atlanta while jokingly saying Trump was the reason he was up on the stage

Glover won two Emmys for his FX show Atlanta, for Outstanding Directing for a Comedy Series andLead Actor in a Comedy Series

He beat out Black-ish star Anthony Anderson, Master of None star Aziz Ansari, Baskets star Zach Galifianakis, Shameless star William H. Macy and Transparent star Jeffrey Tambor.

Glover was not the only African-American winner to make history at the Emmys Sunday evening with his comedy directing win.

Lena Waithe became the first black woman to win best writing for a comedy series for the hit Netflix show Master of None.

Glover's comments took a jab at the president's track record on race.

Last month, President Trump said there were bad people on 'both sides' between neo-Nazis at a riot in Charlottesville and counter protesters.

Lena Waithe (pictured with Aziz Ansari) became the first black woman to win best writing for a comedy series for the hit Netflix show Master of None

Trump reiterated the comments last week, saying: 'You've got some very bad people on the other side also,' in reference to people protesting the neo-Nazis.

Last week, White House Press Secretary Sarah Huckabee Sanders called for ESPN host Jemele Hill, a black woman, to be fired for calling the president a white supremacist on Twitter.

In addition to his comments, the president has also been accused of racism for several of his appointees including ex chief strategist and senior counselor Steve Bannon and Attorney General Jeff Sessions.

Bannon is the executive chairman of Breitbart News, a notoriously alt-right website and in the eighties Sessions was deemed too racially biased to be a federal district court judge in Alabama.