US President Donald Trump has removed a social media video which included a racist clip depicting Barack and Michelle Obama as apes.

The clip - set to the song The Lion Sleeps Tonight - was at the end of a 62-second video containing claims about voter fraud in the 2020 presidential election.

Republican Senator Tim Scott - who is black - had called for the president to remove the post, describing it as the most racist thing I've seen out of this White House.

The White House initially defended the clip as an internet meme video and told critics to stop the fake outrage.

The clip - which is reminiscent of racist caricatures comparing black people to monkeys - appears to be taken from an X post shared by conservative meme creator Xerias in October.

Trump's predecessor in the White House, Joe Biden, also is depicted as an ape eating a banana.

The Obamas have yet to comment on the video.

While the president offered no comment in his post, his sharing of the video - one of dozens posted on his Truth Social account overnight - sparked a fierce backlash.

Some criticism came from within Trump's own party.

Senator Scott, a black South Carolina Republican and an ally of Trump, posted that he was praying it was fake because it's the most racist thing I've seen out of this White House.

Another Republican, New York representative Mike Lawler, called the post wrong and incredibly offensive - whether intentional or a mistake and said it should be deleted immediately with an apology offered.

In a statement sent to the BBC, White House Press Secretary Karoline Leavitt said that the clip is from an internet meme video depicting President Trump as the King of the Jungle and Democrats as characters from the Lion King.

Later on Friday, a White House official said that a staffer erroneously made the post, which has since been taken down.

Before it was removed, Derrick Johnson, the president of the National Association for the Advancement of Colored People (NAACP), called the video disgusting and utterly despicable and accused Trump of attempting to distract the public from the Epstein case and a rapidly failing economy.

Ben Rhodes, a former deputy national security adviser for strategic communications in the Obama White House, said: Let it haunt Trump and his racist followers that future Americans will embrace the Obamas as beloved figures while studying him as a stain on our country.

In a short post of his own, Illinois Governor JB Pritzker said that Donald Trump is a racist.

House Minority Leader Hakeem Jeffries called Trump a vile, unhinged and malignant bottom feeder and urged that every Republican must denounce Donald Trump's disgusting bigotry.

The video clip was added to the end of a minute-long video which included claims about a voting conspiracy in Michigan in the 2020 presidential election. Those claims were debunked as part of Dominion Voting System's successful civil legal actions against some media companies.

Trump also has a long history of criticizing and attacking Obama.