The demonstrations that erupted in a number of towns and cities were the largest seen in Iran since the disputed 2009 presidential election, but authorities say the unrest has waned in recent days, and the security forces insist they have restored order.
Tehran prosecutor Abbas Jafari Dolatabadi said 440 "arrested rioters" have been released in Tehran alone. The semi-official Fars news agency quoted judiciary spokesman Gholamhosein Mohseni Ejehi as saying that just 55 people remain in detention in the capital in connection with the protests.
It was not clear how many Iranians are still detained elsewhere, and the largest and most violent of the demonstrations were held in the provinces. Last week, an Iranian reformist lawmaker, Mahmoud Sadeghi, said some 3,700 people were arrested across the country.
The protests, which began three weeks ago, were initially sparked by anger at the weak economy and official corruption, but escalated rapidly, with some protesters calling for the overthrow of the government and clashing with security forces.
Ejehi, the judiciary spokesman, said Sunday that at least 25 people were killed in the clashes, while insisting that none died at the hands of security forces. Officials had previously said 21 people were killed.
Iranian officials have acknowledged the widespread anger over the economy, which remains weak despite the lifting of international sanctions under the 2015 nuclear agreement with world powers. But they have portrayed the violence as part of a conspiracy by the United States, Israel and other countries to try to overthrow the clerically-overseen government.
The United States and Israel have expressed support for the protests but deny any involvement in them.
Copyright 2018 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.