A coordinated string of bombings and brazen assault on a ministry near Baghdad's heavily fortified Green Zone killed 18 people on Thursday, in the Iraqi capital's deadliest violence this month.
The violence comes just days before the 10th anniversary of the US-led invasion of Iraq, and with barely a month to go before the country holds its first elections in three years.
No group immediately claimed responsibility for the attack, but Sunni militants including those linked to Al-Qaeda often target government officials and offices in a bid to destabilise Iraq.
At least three bombs went off in Allawi neighbourhood, near the foreign and culture ministries and offices of the communications ministry, at about 1:30 pm (1030 GMT), officials and witnesses said.
At around the same time, militants staged an apparently unsuccessful assault on the nearby justice ministry.
Overall, 18 people were killed and at least 30 others wounded in the attacks, an interior ministry official and a medical source said.
All the buildings lie near the Green Zone complex in central Baghdad, home to parliament, the prime minister's office and the US and British embassies.
"Some terrorists tried to infiltrate the justice ministry," said Sabah Noori, spokesman for Iraq's Counter-Terrorism Service.
"The bombs... were coordinated with them (militants) trying to get into the ministry."
Gunfire was heard after the blasts, and smoke could be seen rising above the neighbourhood, witnesses said.
A heavy security presence barred journalists from taking photos or video, and firefighters managed to douse a blaze that had broken out, according to an AFP journalist.
Accounts differed on how successful the militants were in their assault on the ministry.
An official in Baghdad's security command centre said three fighters were killed inside the justice ministry building, but ministry spokesman Haidar al-Saadi said clashes had only occurred outside.
Saadi said no ministry employees were hurt in the assault, and Iraqiya state television reported that security forces evacuated all employees from the building.
A justice ministry employee told AFP that staff escaped the building via a rear entrance, and reported clashes between militants and security forces in which fighters used hand grenades.
Also on Thursday, a bombing targeted a candidate in Iraq's upcoming provincial elections, after another was kidnapped along with his father and other relatives north of Baghdad the night before.
A magnetic "sticky bomb" exploded on a car carrying Khaled Hussein al-Daraji, a candidate in Salaheddin province, killing his driver and wounding three nearby workers, though Daraji escaped unharmed.
And a tribal sheikh, Qais Abdul Karim al-Janabi, was kidnapped along with his son, Salaheddin provincial elections candidate Abdul Karim, and five other relatives in Siniyah, north of Baghdad.
Provincial polls are to be held on April 20, Iraq's first vote since March 2010 parliamentary elections.
Violence has decreased from its peak in 2006 and 2007 when sectarian bloodshed raged between Sunni and Shiite Arabs.
But 10 years after the US-led invasion, attacks remain common, killing 220 people last month, according to an AFP tally based on security and medical sources.