A truck bomb blamed on Al-Qaeda killed 26 people at a crowded market in central Iraq on Tuesday while attacks elsewhere claimed 12 lives, the latest victims of a spike in nationwide unrest.
The violence, the bloodiest of which was in predominantly Shiite areas, came ahead of commemoration ceremonies on Friday for the birth of a key figure in Shiite Islam, and left nearly 100 people wounded in the worst unrest to hit Iraq in three weeks.
Tuesday's violence was swiftly condemned by the UN special envoy to Iraq and the country's parliament speaker.
The morning blast struck a popular market in Diwaniyah, 160 kilometres (100 miles) south of Baghdad, killing 26 people and wounding 50, according to Adnan Turki, head of the provincial health department.
"This attack has the fingerprints of Al-Qaeda," provincial governor Salim Hussein Alwan told a news conference, adding authorities were investigating the explosion.
Shortly after the attack, Diwaniyah officials imposed a curfew across the city of some 440,000 people.
Women and children were among the victims of the attack that hit the main vegetable market, where 15 shops and stalls were destroyed, the officials added.
"The explosion led to a huge fire ball in the sky," said Muslim Farhan, who was nearby at the time of the blast. "Everyone was running in different directions."
The blast came just hours after near-simultaneous car bombs targeting Shiite pilgrims in Freyha, a village on the outskirts of the central shrine city of Karbala, killed four people.
"There were four killed and 13 wounded by two car bombs at around 7:00 am, (0400 GMT) east of Karbala," provincial police spokesman Lieutenant Colonel Ahmed al-Hasnawi said.
A medical official in Karbala put the toll at four dead and 33 wounded.
Karbala is frequented by Shiite pilgrims as it is the site of shrines to Imam Hussein and his half-brother Abbas, both central figures to Shiite Islam.
Friday's ceremonies are to mark the birth of another figure, known as the 12th imam, and pilgrims visiting the city are frequent targets of Sunni insurgents.
"A large number (of pilgrims) will travel to Karbala this week and radical groups such as Al-Qaeda... may try to attack them in an attempt to inflict numerous casualties and enflame inter-communal tensions," John Drake, an analyst with private security firm AKE Group, warned in a statement on Tuesday.
Two separate gun and bomb attacks in the restive province of Diyala, north of Baghdad, killed four people -- the sons of two anti-Qaeda militiamen and two farmers -- security and medical officials said.
Also north of the capital in Taji, a policeman was among two people killed in simultaneous bomb attacks, an interior ministry official said. A hospital official said three people died in the blasts.
The first explosion was followed closely by a second blast as police rushed to the scene, the ministry official said, adding that 14 people were also wounded, eight of them policemen.
Another bomb attack in the town of Tuz Khurmatu, north of Baghdad, killed a policeman and wounded another, an officer and a local doctor said.
And a bombing near a mosque in a mostly Sunni part of north Baghdad killed at least one person dead and wounded five, security and medical officials said.
The overall death toll of 38 was the worst in Iraq since June 13, when a wave of apparently coordinated bombings and shootings killed 72 people.
Tuesday's violence comes amid a spike in attacks in Iraq, with the country suffering violence in June that left at least 282 people dead according to an AFP tally, although government figures said 131 Iraqis died.
While violence in Iraq has declined dramatically since its peak in 2006-2007, attacks remain common across the country.