Iran executed a man accused of killing a security officer in protests that followed the death in custody of Mahsa Amini in September 2022.

Mohammad Ghobadlou, 23, was hanged early Tuesday, the judiciary’s Mizan news agency reported. He was charged with spreading “corruption on earth,” a crime punishable by death, for allegedly killing a policeman in anti-government protests that gripped Iran after the death of 22-year-old Amini in Sept. 2022.

Read More: Mahsa Amini’s Death Still Haunts the Iranian Regime

The order to carry out Ghobadlou’s execution was “completely illegal,” his lawyer, Amir Raisian, told Iranian newspaper Shargh on Monday. Ghobadlou had the right to appeal the death sentence and be given a new trial, Raisian said, after the country’s supreme court had overruled his death penalty.

Ghobadlou’s execution marks the latest chapter in Tehran’s crackdown on protests that swept the nation for months. Rights groups say more than 500 people died in government crackdowns on protests that followed the death of Amini—who was detained for allegedly violating Iran’s strict dress code for women.

Since then, at least seven men, most in their 20s, have been hanged for their alleged roles in the unrest while thousands more were jailed, according to Amnesty International.

Imprisoned for more than 480 days, Ghobadlou was believed to have been in danger of imminent execution in January 2023. At the time, scores of people picketed the Rajai Shahr prison, where he was jailed, following reports that he was to be hanged before dawn. Iran’s judiciary dismissed the reports as a “deception campaign,” but many people believe the protests helped delay his execution.