Hamid Nouri, 60, was reportedly a deputy prosecutor at Gohardasht prison near Tehran at the time of the killings.
He was arrested upon his arrival in Sweden in 2019 and is accused of murder and war crimes. He denies the charges.
Prosecutors invoked the principle of "universal jurisdiction" for serious crimes to bring the case.
It is the first time anyone has gone on trial over the 1988 killings of about 5,000 detainees linked to an Iranian opposition group allied to Iraq.
The executions were ordered by Iran's then supreme leader near the end of the war between Iran and Iraq.
Human rights groups have long campaigned for justice. The killings have come under renewed focus after Ebrahim Raisi was elected president of Iran.
Mr Raisi, who was sworn in last week, was one of four judges who sat on secret tribunals set up in 1988 to "re-try" thousands of prisoners for their political activities.
He has denied any role in the sentences but has also said they were justified because of a fatwa, or religious ruling, by Iran's supreme leader at the time, Ayatollah Ruhollah Khomeini. (See: [ Ссылка ]).
Ещё видео!