Iran has passed a law allowing the government to grant citizenship to the families of foreigners killed while fighting for the Islamic republic, AFP reports.

"Members of the parliament authorized the government to grant Iranian citizenship to the wife, children and parents of foreign martyrs who died on a mission... during the Iran-Iraq war (1980-1988) and afterwards," a statement read.

Citizenship must be awarded "within a maximum period of one year after the request", official state news agency IRNA added.

Iran's outgoing conservative-dominated parliament will serve until late May.

No figures are available on the number of foreign fighters killed during the Iran-Iraq war, but Afghans, and even a group of Iraqis, fought alongside Iranian forces against the regime of Saddam Hussein.

The law could apply to "volunteers" from Afghanistan and Pakistan who are fighting in Syria and Iraq against jihadists including the Islamic State group and Al-Nusra Front.

Read more