Free speech advocates say the move reflects growing pressure against those who use social networks to express anger.

A YouTuber who criticised the Moroccan king has been given a prison sentence while a journalist-activist who defended anti-government protesters in a tweet has been detained.

Freedom of speech advocates say the moves on Thursday reflect growing pressure against those who use social networks to express anger at economic and social problems.

A court in Settat handed a four-year prison sentence to Mohammed Bekkaki for referring to Moroccans as donkeys and criticising King Mohammed VI in a video posted on YouTube in November.

The royal family is widely revered in Morocco and criticising the king is a criminal offence.

Meanwhile, journalist and activist Omar Radi was detained in Casablanca on Thursday and charged with insulting a judge.

Radi’s arrest was prompted by a tweet six months ago that criticised a Moroccan court’s decision to hand maximum prison sentences to leaders of mass demonstrations in the poverty-stricken northern Rif region.

The Casablanca court refused to grant Radi bail pending the next hearing on January 2, said activist Khalid El Bekkari, who was in the court when Radi was charged. If convicted, Radi could face up to a year in prison and a 500 euro ($555) fine. It was unclear why the arrest occurred so long after the tweet.

191016163533565

Radi was also part of Arab Spring protests in Morocco in 2011 that pushed against corruption and abuse of power and limits on free speech, and he has continued to defend human rights since then.

Morocco, long known for its stability in the Arab world, adopted constitutional reforms in response to the Arab Spring, but the country is still struggling with poverty, corruption and unemployment.

Freedom of expression is guaranteed in the Moroccan constitution, but with limits. Authorities say some social media users are pushing those limits too far, sometimes for personal gain.

But rights activists say authorities are trying to cover up their inability to solve Morocco’s problems.

“There is a strong escalation against freedom of expression by authorities, shown by the successive arrests and trials of bloggers and social media users to express their anger over the deteriorating social and economic conditions,” the Moroccan Freedom Now association said in a statement after Radi’s arrest.

Last month, a rapper known as Gnawi went on trial over a video in which he insulted the police. His supporters viewed his arrest as punishment for another, hugely popular YouTube video that rages against Moroccan powers-that-be and criticises the country’s widening economic gap.