At least 17 people were killed in and around the Iraqi capital on Monday in four bomb attacks, including a car bomb claimed by Islamic State militants.
In a statement, the Sunni insurgent group said it had targeted Shi'ite militiamen in the Ameen district of eastern Baghdad. Twelve people were killed and 42 people were wounded in the explosion, police and medical sources said.
The government is trying to dislodge the insurgents from large swaths of the country's north and west, but advances have been slow, particularly in the western province of Anbar.
Two civilians were killed and seven others were wounded when a roadside bomb went off later in the northern Shi'ite neighborhood of Shaab, police and medics said.
There were also blasts in predominately Sunni areas, the sources said. In Latifiya, about 40 km (25 miles) south of Baghdad, a bomb killed two people. Another blast near an army patrol in al-Mashada, in the capital's northern outskirts, left a soldier dead and four wounded.
Three civilians were also wounded when a rocket landed in the western district of al-Shula. There were no claims of responsibility for the smaller attacks.
Baghdad has witnessed a wave of kidnappings and attacks on government officials and civilians.
Earlier in the day, gunmen shot and killed a local official along with his son and nephew in the town of Tarmiya, about 25 km (15 miles) north of Baghdad, police and medics said.
The government has been struggling to rein in Shi'ite militias, seen as critical forces against Islamic State, or control criminal gangs carrying out contract killings, kidnappings and extortions.