A Dutch court has convicted populist anti-Islam politician Geert Wilders of hate speech charges at the end of a trial he branded a politically motivated "charade" that endangered freedom of speech.

Presiding Judge Hendrik Steenhuis said the court would not impose a sentence on Wilders, saying that the conviction was punishment enough for a democratically elected politician.

Wilders was not in court for the verdict, which came just over three months before national elections.

His Party for Freedom is currently narrowly leading a nationwide poll of polls and has risen in popularity during the trial.

Even before the hearing, Wilders vowed not to let a conviction muzzle him.

"Whatever the verdict, I will continue to speak the truth about the Moroccan problem, and no judge, politician or terrorist will stop me," he tweeted shortly before the verdict.

Prosecutors had asked judges to fine him 5,000 euro (£4,200).

In a tweet, Wilders called the verdicts "madness" and said that he had been convicted by three judges who hated his party.

He had denied the charges and insisted he was performing his duty as a political leader by pointing out a problem in society.

Before declaring Wilders guilty, Judge Steenhuis stressed that freedom of speech was not on trial as the politician had claimed during the case.

"Freedom of speech is one of the foundations of our democratic society," the judge said.

But he added: "Freedom of speech can be limited, for example to protect the rights and freedoms of others, and that is what this case is about."

The politically-charged prosecution centred on comments Wilders made before and after the Dutch municipal elections in 2014.

At one meeting in a Hague cafe, he asked supporters whether they wanted more or fewer Moroccans in the Netherlands.

That sparked a chant of "Fewer! Fewer! Fewer!" - to which he replied: "We'll take care of it."

Prosecutors said that Wilders, who in 2011 was acquitted at another hate speech trial for his outspoken criticism of Islam, overstepped the limits of free speech by specifically targeting Moroccans.

On Friday, he was convicted over the interaction with the crowd of supporters in the Hague cafe, which judges said was carefully orchestrated and broadcast on national television.

He was acquitted over similar comments he made in a radio interview a week earlier.