An Ankara court had barred access to the video-sharing site from May 2008 to October 2010 over 10 videos deemed insulting to modern Turkey's founding father Mustafa Kemal Ataturk, the Strasbourg-based rights tribunal said.
"Blocking without a legal basis users' access to YouTube infringed the right to receive and impart information," it said, ruling on a case brought by three Turkish law professors.
"The court also found that there was no provision in the law allowing the domestic courts to impose a blanket blocking order on access to the Internet, and in the present case to YouTube, on account of one of its contents."
The lengthy ban on YouTube and thousands of other websites had prompted widespread concern about freedom of expression under then prime minister and now President Recep Tayyip Erdogan, who critics say has become increasingly authoritarian.
Before the ban, YouTube had been the fifth most popular site in Turkey.
The government of Erdogan's Justice and Development Party (AKP) also blocked Twitter and YouTube in March 2014 after they were used to spread a torrent of audio recordings implicating Erdogan and his inner circle in a corruption probe.
Get your daily dose of tech news, reviews, and insights, in under 80 characters on Gadgets 360 Turbo. Connect with fellow tech lovers on our Forum. Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates. Catch all the action on our YouTube channel.
Blue Origin Joins SpaceX in Orbital Booster Reuse Era With New Glenn’s Successful Launch and Landing
AI-Assisted Study Finds No Evidence of Liquid Water in Mars’ Seasonal Dark Streaks