Hassan Afshar, was executed at the prison in the city of Arak in Iran on July 18, according to Amnesty International.
The secondary school pupil was executed after he was convicted of raping another boy, during a two-month trial in which he had no legal representation.
Afshar was arrested in 2014 along with two other young men, after they were accused of forcing a teenage boy to have sex with them by his father.
However, Afshar maintained that the sexual acts were consensual and that the alleged victim had willingly engaged in same-sex sexual activities on numerous previous occasions, leading LGBT activists to claim the teen was executed simply for being gay.
‘Homosexual conduct’ remains illegal under Iran’s Sharia law and is punishable by fines, public flogging and/or even execution.