Protesters place a photo of Moroccan rapper Gnawi outside a court where he is on trial.
A Moroccan court on Monday sentenced rapper Mohamed Mounir, known as Gnawi, to one year in jail for insulting police on social media, in what Amnesty condemned as "a disgraceful verdict".
A defence lawyer said he believed his 31-year-old client was prosecuted because of a song he co-wrote about the hardships of young people in Morocco, unemployment and corruption.
The song "Aach al Chaab" -- which means long live the people -- has been viewed more than 15 million times on YouTube since it was released last month.
The lyrics denounce injustice and money-grabbing and attack Morocco's king directly, which according to local media constitutes a clear breach of the kingdom's "red lines".
However, the court in Sale near the capital Rabat sentenced Gnawi to one year in jail and fined him 1,000 dirhams ($103) for "insulting a public servant", a reference to the police.
Gnawi, who was arrested November 1, said he had insulted the police in a video which he posted on his Instagram account because he had been "humiliated" by them.
"I am an artist. My job is to defend my rights and the rights of the people. It was not the first time that I had been humiliated by the police," Gnawi told the court.
"Since I was born, I have been humiliated," he said.
Outside the courtroom, Gnawi's relatives chanted "long live the people".
"This is a disgraceful verdict. There can be no justification for imprisoning the Moroccan rapper Gnawi for a year simply because he exercised his right to freedom of expression," Amnesty International said.
"International law protects the right to freedom of expression - even when the opinions shared are shocking or offensive," said Amnesty's Middle East director Heba Morayef.
"This verdict... indicates that those who dare to openly criticise the authorities will face punishment," Morayef said in a statement.
The case has also sparked outrage on social media, but Mustapha Ramid, Morocco's minister of state in charge of human rights, told parliament that "Aach al Chaab" was "provocative" and "repugnant", according to media reports.
Young people make up a third of Morocco's 35 million inhabitants. A quarter of those aged between 15 and 24 are unemployed and out of school, according to official figures.
T-Pain’s unadorned singing on ‘The Masked Singer’ made the judges cry, and his win feels like vindication: he always told you he could sing.
Get ready for the good kind of heat with this collection of prime-picked summer jams, and no, it’s not just ‘Old Town Road’.
More than a Grammy-nominated artist, Hussle was an entrepreneur, community organiser and activist who was killed in the very community he was trying to revive.
Dozens of Indonesians have taken part in a shouting competition in the capital Jakarta, given five minutes on stage to belt out advice on issues such as health, education and child protection to a crowd below.
One of the most striking moments in Sarah M. Broom’s enthralling memoir, “The Yellow House,” comes near its end, the story of a uniquely American family and a uniquely American city, beautifully told.
Directors of an Italian museum are optimistic that a painting found hidden in a wall this week is a Gustav Klimt work stolen two decades ago, a director said on Thursday.