Barack Obama and his wife, Michelle Obama, have been subjected to racism allegations on social media due to their involvement in a new movie.

Netflix's newest psychological thriller, "Leave the World Behind," was released Friday and has since dominated the platform's leaderboards. However, the film starring Julia Roberts, Ethan Hawke and Mahershala Ali raised eyebrows due to scenes that are allegedly racist. The former president and first lady got dragged into the issue because their names appear in the opening credits.

In one scene, Ruth (Myha'la Herrold) warns her dad G.H. (Ali) about doomsday and trusting white people.

"I'm asking for you to remember that if the world falls apart, trust should not be doled out easily to anyone, especially white people," she said. "Even mom would agree with me on that."

The scene raised several eyebrows on social media. Many netizens felt it was an attack against white people, and some targeted the Obamas due to their involvement in the film.

"Netflix film called 'Leave The World Behind' produced by the Obamas includes a scene demonizing white people," one wrote on X. "White people are the only group you're allowed and celebrated to be racist towards, and it will be put into movies by the most influential people."

"I love how the Obamas promote racism. So great for America," another sarcastically added. A third person opined, "Their resentment bleeds into everything they create."

"My goodness, imagine if it were two white people in bed that said something like this! This is HATE! @BarackObama is a flat-out racist. He divided this country, and we still haven't recovered from his failed presidency," a different user alleged.

But some defended the Obamas. One netizen pointed out that the film showed Black and white people and their prejudices against each other as the movie features a white family and a Black father and daughter.

"I disagree with this take. It shows both the white and [B]lack families/characters with their initial prejudices and then how those evolve over time as they get to know each other, esp. as they realize the seriousness of the situation they are in. My takeaway was that the movie suggested those prejudices are ultimately very unproductive to our society and can be overcome," the netizen wrote.

"Both families had prejudices," another user commented. A third person agreed, "This is true. I just watched this movie last night. Both families did it."

"I think the people here see what they want to see. Yes, there was racism. Just like in real life. But I did not think the movie itself was racist. Like you said, the families get closer," a fourth person said.

Michelle and Barack haven't released a statement about the issue yet. However, the former first couple has been an advocate of equity and inclusivity. They have also fought the scourge of racism. They launched the Obama Foundation in 2014, aiming to build a network of powerful leaders who can drive inclusive changes in their community.

"Leave the World Behind" currently streams on Netflix.