Thousands of demonstrators in Morocco have condemned prison sentences given to the leader of the Hirak Rif anti-poverty movement and dozens of other activists.

The demonstration brought one of the main avenues of the Moroccan capital, Rabat, to a standstill on Sunday.

Morocco Protest
A protester holds a photo of Hirak leader Nasser Zefzafi (Mosa’ab Elshamy/AP)

Security forces kept watch as participants sang, “The people want the detainees released” and “Long live Rif.”

Hirak leader Nasser Zefzafi was sentenced to the maximum prison term of 20 years for threatening state security.

An appeals court upheld his sentence and those of other activists this month.

Morocco Protest
Moroccans wave Berber flags and chant slogans (Mosa’ab Elshamy/AP)

Rif is the struggling region in northern Morocco where the Hirak movement was born in 2016.

The movement demands development and job creation for the region.

Relatives, human rights organisations and left-wing parties are demanding the imprisoned activists’ immediate release.