Mahmoud Asgari was just sixteen when the noose went over his head. He was being executed for a crime committed fourteen months previously.
Beside him, Ayaz Marhoni had turned 18. They had acted together, been tried together and now they were going to die together.
It was a case which was causing controversy across the world. For a start, this hanging was contravening international law. Iran had signed the UN Convention on the Rights of the Child, which specifically prohibited juvenile executions.
(The USA and Somalia were unable to ratify their signatures for that very reason. Both nations reserved the right to sentence children to death.)
Nevertheless, on a sunny day in July 2005, a crowd had gathered in Edalat Square, in Mashbad, north-eastern Iran. They remained to watch the public hanging of two teenagers, who had each been given 228 lashes while waiting for their date with the gallows.
They were just two of an estimated 86 child executions, which have taken place worldwide since 1990, according to figures collected by Amnesty International. The vast majority of those died in Iran and the USA. The rest were in China, the Democratic Republic of Congo, Nigeria, Pakistan, Saudi Arabia, Sudan and Yemen.
The most recent was also in Iran. Delara Darabi was seventeen when her father's cousin was killed during a break-in. She initially confessed to the murder, believing that her youth would save her from execution.
When it became clear that it wouldn't, she changed her story. Her boyfriend had done it and then asked her to lie to protect him. She was in love. She did it.
The court didn't accept the new testimony and sentenced her to death anyway. Activists rallied to her cause, prompting Iran's Head of the Judiciary to cable a stay of execution. It was ignored by the governor of Rasht Central Prison. Delara was hanged during the morning of April 19th, 2009.
Until 2005, the USA led the world in child executions, though, in fairness, most of those were committed in the state of Texas. However, the case of Roper v Simmons (PDF) resulted in the death penalty being ruled unconstitutional for juveniles. The deciding factor was the fact that 30 states had previously opted to ban capital punishment for those under 18 years old at the time of the crime. This meant that there was now a 'national consensus' towards abolition.
China, Pakistan, Sudan and Yemen have also changed their laws within the past five years. Each country now requires defendants to have been over 18 at the time of the crime, before they can be sentenced to death.
This leaves just The Democratic Republic of Congo, Iran, Nigeria and Saudi Arabia allowing the practice. Nigeria is laboring under a self-imposed moratorium. This has resulted in 30 children since 1997 starting life sentences on Death Row without actually facing execution.