The government's announcement that it had arrested 25 suspects and seized 880 pounds (400 kilograms) of military grade explosives also set off bitter accusations from some Sunni politicians that the government had exaggerated the incident to burnish its security credentials.
The charges laid bare once more the stark lack of trust in Iraq between the Shiite-dominated government and the Sunni Muslims who oppose the government.
Maj. Gen. Qassim al-Moussawi, the capital's top military spokesman, said security forces had seized 440 pounds (200 kilograms) of TNT, 440 pounds (200 kilograms) of C4 explosive and 66 gallons (250 liters) of ammonium nitrate, an ingredient to make explosives, and 60 mortar shells. Twenty-five suspects who had been planning an attack that morning were arrested, he said.
Legislator Abdul Karim al-Samarraie, the deputy head of parliament's security and defense committee, said the insurgents were planning to target government ministries although he did not have details on which ones.
There was no way to independently verify the reports.
An explosives expert said if the figures al-Moussawi quoted were true, then the security forces had seized enough explosives to make around 120 suicide vests, or around ten average-size car bombs, or a giant truck bomb big enough to blast a crater 32 feet (10 meters) deep in a tarred road.
The expert spoke on condition of anonymity because he was not authorized to speak to the media.
"This will not prevent the insurgents from attacking, but it will slow their operations," said analyst Tim Brown at GlobalSecurity.org. "If the reports prove true, it represents a major success for the Iraqi government."
The sweep followed hours of cordon and search operations across the capital. Such operations have become rare since security in Iraq improved in 2008. However, every couple of months, insurgents still succeed in carrying out horrific bombings. Hundreds were killed when blasts targeted government institutions in central Baghdad in recent months.
The issue of security is becoming increasingly politicized ahead of March 7 polls. Sunni lawmakers were quick to question whether the lockdown ordered by the Shiite-dominated government on Tuesday was really necessary and emphasized the inconvenience it caused ordinary Iraqis who could not get to work or school.
"The government is trying to leave the citizens with the impression that there is a battle. They terrified and shocked the people," said legislator Saleh al-Mutlaq. "We think that these measures are totally unjustifiable."
Iraqi security forces are increasingly taking over duties from the U.S. military, whose combat units are scheduled to leave by the end of August. The stakes are especially high for the prime minister's Rule of Law coalition, which is campaigning on its ability to protect citizens and its record in reducing violence.
In a reminder of the continuing instability, four policemen were killed and another wounded when a bomb exploded near their vehicle in Al-Saadiyah, 90 miles (140 kilometers) northeast of Baghdad, a policeman and a morgue official said Tuesday.
The officials spoke on condition of anonymity because they were not authorized to speak to the press.
Sunni lawmaker Dhafir al-Ani said that the government is preying on people's fears with the security operations to boost their chances in the polls.
"Now (the government) is afraid of losing their authority, they have started to beat the drums of war and making people live in a military atmosphere ... We also noticed how people were greatly annoyed by these measures."
Iraq's nationwide election will be a crucial test whether Iraqis can vote in a government capable of overcoming deepening ethnic and sectarian rivalries, or whether those divisions will dissolve into violence that threatens the country's unity and regional stability.
Tensions have already arisen after a government committee charged with keeping supporters of the Saddam Hussein regime out of politics recommended that al-Mutlaq's party and 13 others be banned from the elections over alleged links to the former dictator.
"Members of those entities were personnel of the former regime's repressive security apparatus, or Mukhabarat (secret police) officers, and some of them were collaborators with the former regime," said Ali al-Lami, the head of the committee.
The potential exclusion of al-Mutlaq, who holds the second largest bloc of Sunni seats in parliament, raised fears that Sunnis might boycott the polls again, as they did in a January 2005 election. That boycott was followed by a surge in insurgent attacks.