He was also deputy head of the Assembly of Experts which has the power to choose the successor to supreme leader Ayatollah Ali Khamenei - a position to which Shahroudi himself was occasionally linked. Shahroudi had not been seen in public for several months, and there were reports last year that he underwent surgery for an unspecified cancer in Germany.
A German lawmaker filed a complaint against Shahroudi during his stay, calling for him to be charged for crimes against humanity, but a judge found no grounds to hold him. Shahroudi headed the judiciary between 1999 and 2009 - a period that saw hundreds of executions and a concerted crackdown on activists, dissidents and the reformist media.
His tenure concluded with the mass protests over allegations of rigging in the 2009 presidential election, which led to thousands being arrested and allegations of severe prisoner abuse.