Dutch Freedom Party Leader Geert Wilders was acquitted by a court of charges that he made remarks defaming Muslims, ending a three-year prosecution that he described as a bid to restrict his freedom of speech.

Wilders, 47, was charged with inciting hatred and discrimination and insulting Muslims for calling the Koran "fascist" and comparing it to Adolph Hitler's book "Mein Kampf""in a 2007 Dutch newspaper editorial. A year later, he released his movie "Fitna" , in which he urged Muslims to rip out "hate-preaching" verses from the book.

Wilders said in 2007 "The Koran's core theme is about the duty of all Muslims to fight non-Muslims; an Islamic Mein Kampf, in which fight means war, jihad.

Announcing the verdict Presiding Judge Marcel Van Oosten said in the Amsterdam district court today "You have spoken in a hurtful and also shocking way." Even so, "the court finds, in the broadest context, that you have to be able to propagate the message of such a film."

The movie led to protests in Islamic-majority countries including Indonesia and Pakistan and prompted Malaysians to call for a boycott of products from the euro area's second largest exporter. Wilders, whose party backs the minority Dutch coalition government, has been under constant police protection since a Muslim radical murdered filmmaker Theo van Gogh in 2004.

"Today is a victory for freedom of speech," Wilders said on its website today. "The Dutch are still allowed to speak critically about Islam, and resistance against Islamization is not a crime."

Prosecutors, who were forced to file charges against Wilders by a higher court, also called for the politician to be cleared, saying his criticism was aimed at Islam as a religion and not at Muslims.

Wilder's Freedom Party, more than doubled its representation in parliament in last year's elections and is now the third largest group of the 10 in the lower chamber.

"The ruling is clear and in line with the prosecutors' demands," Prime Minister Rutte said in a Twitter posting. "It's great news for Geert Wilders, with whom we're cooperating well."