Iran has blinded a man on Tuesday after convicting him of throwing chemicals in face of a four-year-old girl, a judicial official was quoted as saying.

The little child was left completely unable to see by the brutal attack – leading the state to sentence the attacker to the literal eye-for-an-eye punishment.

IRAN EX-PROSECUTOR KNOWN AS 'BUTCHER OF THE PRESS' SENTENCED TO 135 LASHES OVER CORRUPTION

The head of criminal affairs at the Tehran prosecutor’s office, Mohammad Shahriari, said it was the second time this year that Iran has carried out the punishment, which can be imposed for such crimes in the Islamic republic.

“In 2009, this man threw lime into the face of a little girl of four years in the Sanandaj region, leaving her blind,” the ISNA news agency quoted him as saying.

“Today, the law of retribution was applied in my presence and that of experts,” he said, without giving details.

IRAN CALLS FOR A POLITICAL SOLUTION TO WARS IN YEMEN, SYRIA

The law of retribution is a central part of Islam’s sharia code but has been condemned by international human rights groups.

Victims also have the right under the Islamic “qisas” law to personally inflict the gruesome punishments.

They can also choose to spare their attackers the punishment often in exchange for blood money.

In 2011 a young Iranian woman called off the blinding of her attacker at the last minute.

Ameneh Bahrami – one of a number who have been blinded and disfigured in acid attacks in recent years – said she did not want her attacker to endure what she had.

Majid Movahedi has been sentenced to blinding by ten drops of sulfuric acid in 2008.

Human rights groups have in the past slammed the legal code, branding it “inhumane” and “brutal”.

This story first appeared in The Sun.