Google has won a landmark ruling as a judge threw out a $1bn lawsuit brought by Viacom accusing the internet giant of allowing copyrighted material on its YouTube service without permission.
Viacom had accused Google of "massive intentional copyright infringement".
But the Manhattan judge said Google and YouTube could not be held liable merely for having a "general awareness" that videos might be posted illegally.
Media conglomerate Viacom said it planned to appeal against the decision.
Google called the ruling "an important victory".
'Safe harbour'
Viacom had claimed that "tens of thousands of videos" based on its copyrighted works had been posted on YouTube, and that both YouTube and its owner Google had known about it but had done nothing about it.
But District Judge Louis Stanton said in his ruling: "Mere knowledge of prevalence of such activity in general is not enough. The provider need not monitor or seek out facts indicating such activity".
Google and YouTube had argued that they were entitled to "safe harbour" protection under digital copyright law because they had insufficient notice of particular alleged offences.
Judge Stanton agreed, saying that when "YouTube was given notices, it removed the material... it is thus protected from liability" under a provision in the Digital Millennium Copyright Act.