Iran has released a government critic and popular hip-hop artist who shot to fame over his lyrics about the 2022 death of Mahsa Amini, local media reported on Tuesday.

Toomaj Salehi spent a little over a year in jail and faced a death sentence issued by a Revolutionary Court, which usually involves closed-door hearings and gives limited rights to those on trial.

The sentencing drew international criticism and was overturned in June.

Iranian newspapers, including the pro-reform Hammihan daily, said Salehi was released on Sunday.

Commenting on his release, New York-based Artists At Risk Connection, an organisation that protects artists and cultural workers who are at risk because of their creative expression, said in a statement: “This case highlights the grave risks artists face when challenging authoritarian regimes, as well as ARC’s ongoing efforts to advocate for their rights.”

The Grammy winner was detained for the first time in 2022 following mass protests that swept the Islamic Republic after Ms Amini was arrested for wearing her hijab, the Islamic head covering, too loosely, and later died in police custody.

Salehi rapped about her in one video, saying: “Someone’s crime was dancing with her hair in the wind.” In another verse, he predicted the downfall of Iran’s theocracy.

He spent time in and out of jail and said in a video message that he was tortured during detention, which led to his arrest in November 2023.

State media at the time released a video showing him blindfolded and apologising for his words, a statement likely to have been made under duress.

UN investigators say Iran was responsible for Ms Amini’s death, and that it violently put down largely peaceful protests, killing more than 500 people and detaining some 22,000.

Iran has long prosecuted and in many cases imprisoned dissidents, journalists and artists who challenged government decisions imposing restrictions on women and activists.

Reportedly, such cases have dropped after pro-reform President Masoud Pezeshkian came to power in July.