He was executed by hanging.

In Iran, a participant in the protests was executed, found guilty by the court of “enmity against God”.
Mohsen Shekari was hanged this morning. He was accused of “rebellion”, blocking a main road in Tehran and using a machete to attack a member of the Basij resistance forces, writes the BBC.
On November 1, the court found Shekari guilty of fighting and drawing a weapon “with the intent to kill, cause terror and disrupt public order and security” and of “enmity against God.”
The activist said he was convicted after a “show trial without due process of law.”
So far, the judiciary has announced that 10 more people have been sentenced to death by Revolutionary Courts on charges of “enmity against God” or “corruption on Earth” in connection with the protests.
What is known about the protests in Iran
As reported, in September, people went to mass protests. The reason was the death of 22-year-old Mahsa Amini, who was detained by the police for allegedly wearing a hijab “improperly”.
Protests led by women spread to 160 cities in all provinces of the country. The authorities call them riots, allegedly provoked by external enemies.
At the end of November, the UN reported that more than 300 people, including 40 children, had died in the country since the beginning of nationwide protests.
According to the Human Rights Information Agency (HRANA), at least 475 protesters have been killed and 18,240 arrested so far. It is also reported that 61 security service personnel were killed.