Iran's supreme leader has pardoned "tens of thousands" of prisoners including some arrested in recent anti-government protests, state news agency IRNA reported, after a deadly state crackdown helped quell the nationwide unrest.

However, the pardon approved by Ayatollah Ali Khamenei came with conditions, according to details announced in state media reports, which said the measure would not apply to any of the numerous dual nationals held in Iran.

The family of Irish citizen Bernard Phelan has confirmed that he has not been released from prison in Iran.

IRNA said those accused of "corruption on earth" (a capital charge brought against some protesters, four of whom have been executed) would also not be pardoned.

Neither would it apply to those charged with "spying for foreign agencies" or those "affiliated with groups hostile to the Islamic Republic", IRNA reported.

While not commenting directly on the latest developments in Iran, the Department of Foreign Affairs said in a statement this afternoon that it remained "very concerned" about Mr Phelan and continues to "provide consular assistance, in close coordination with France".

It went on to say that his case has been raised repeatedly and directly with the Iranian authorities, including directly by Tánaiste and Minister for Foreign Affairs Micheál Martin.

He spoke with the Iranian Foreign Minister on Monday, highlighting the Paris-based travel consultant's health condition, stressing, the statement said, "the need for his urgent release on humanitarian grounds".

Bernard Phelan is being detained in Mashhad in northeastern Iran

Mr Phelan, who is originally from Clonmel in Co Tipperary, also holds French citizenship.

He was arrested last October while travelling in Iran and is being detained in Mashhad in northeastern Iran.

The 64-year-old, who suffers from a heart condition and a chronic bone issue, suspended a hunger strike two weeks ago.

Iran was swept by protests following the death of a young Iranian Kurdish woman, Mahsa Amini, in the custody of the country's morality police last September. Iranians from all walks of life took part, marking one of the biggest challenges to the Islamic Republic since the 1979 revolution.

According to the HRANA activist news agency, about 20,000 people have been arrested in connection with the protests, which the authorities accused Iran's foreign enemies of flaming.

The pardon approved by supreme leader Ayatollah Ali Khamenei is reported to come with conditions (file image)
Protesters hold a photograph of Mahsa Amini (file image)

Rights groups say over 500 have been killed in the crackdown, including 70 minors. At least four people have been hanged, according to the Iranian judiciary.

In a letter to Ayatollah Khamenei requesting the pardon, judiciary head Gholamhossein Mohseni Ejei said: "During recent events, a number of people, especially young people, committed wrong actions and crimes as a result of the indoctrination and propaganda of the enemy.

Protests have slowed considerably since the hangings began.

"Since the foreign enemies and anti-revolutionary currents' plans have been foiled, many of these youth now regret their actions," Mr Ejei wrote.

Ayatollah Khamenei approved the pardons in honour of the anniversary of the 1979 Islamic revolution.

It would not apply to those "facing charges of spying for foreign agencies, having direct contact with foreign agents, committing intentional murder and injury, (and) committing destruction and arson of state property".

"Naturally, those who do not express regret for their activities and give a written commitment for not repeating those activities, will not be pardoned," deputy judiciary chief Sadeq Rahimi said, state media reported.

Amnesty International has criticised Iranian authorities for what it called "sham trials designed to intimidate those participating in the popular uprising that has rocked Iran".

Additional reporting Jennie O'Sullivan, Jackie Fox