A US federal court has ordered Google to remove from YouTube a crude anti-Islam film which sparked deadly riots across the Muslim world.
In a 2-1 decision, the 9th US Circuit Court of Appeals ruled in favour of an actress who said she was tricked into appearing in the film.
The film denounces the Prophet Muhammad as a fraud and worse.
The ruling turned on a copyright issue not the film's content, which YouTube said did not violate its standards.
The clip from the film entitled Innocence of Muslims sparked violence in several places around the world in 2012. Dozens of people died in the Middle East during the protests.
The film has also been linked to the attack on a US diplomatic post in Benghazi, Libya, in which killed four Americans including the US ambassador were killed.
YouTube, which is owned by Google, had rebuffed requests to remove the film from the website, saying only the filmmaker and not the actress, Cindy Lee Garcia, owned the copyright.
Garcia sued Google to demand they remove the video, arguing the man behind it, Nakoula Basseley Nakoula, gave her a script that referred neither to Muslims nor to the Prophet. She said her voice was dubbed over in post-production to make it appear as though she was speaking the inflammatory words.
Depicting the Prophet Muhammad in any way defies Islamic belief and offends Muslims, let alone satirising and mocking him, as the film does.