Twin attacks on the Iranian parliament and Ayatollah Khomeini’s mausoleum in the capital, Tehran, have killed at least 12 people and injured many more.
The assault on the parliament building appears to be over, after earlier reports of a hostage situation. A suicide bomber died at the mausoleum.
Iranian officials say they foiled a third attack.
The so-called Islamic State group (IS) has claimed it carried out the attacks, which would be a first in Iran.
IS later posted a video which showed what it claimed is footage from inside the parliament building.
Iranian media reported that four attackers inside the parliament building had been killed by security forces.
It is not clear whether the death toll of 12 includes the attackers.
Gunmen armed with Kalashnikovs entered the parliament on Wednesday morning. Images from the scene show a major security operation.
On video filmed outside parliament heavy gunfire could be heard.
Reports said the gunmen had entered parliament via a public entrance, dressed as women.
Image copyright JamaranNews/Fars Image caption this image, posted by Fars News, shows an explosion taking place outside the mausoleum
At around 10:40 (06:10 GMT) attackers at the mausoleum in southern Tehran, which is dedicated to the Islamic Republic’s founder Ayatollah Khomeini, opened fire.
The governor of Tehran said one attacker there had detonated a suicide vest and another had been killed by security forces, state broadcaster Irib reports.
Images from the scene showed grenades and magazines for automatic weapons, apparently recovered from the body of an attacker.
There are reports that at least one of the attackers was female, or possibly just dressed as a woman.
Several members of the public, visiting the shrine, have been injured.