A suicide bomber targeted Shiite worshippers at a Baghdad mosque after Friday prayers, killing at least eight people, security and medical officials said.
The attack in southwest Baghdad also wounded at least 31 people, the officials said.
There was no immediate claim of responsibility for the attack, but the Islamic State jihadist group carries out frequent suicide bombings targeting Shiites, whom it considers heretics.
More From This Section
Bombings in Baghdad have decreased since mid-2014, with the jihadists occupied by fighting in other areas.
But IS still controls a large part of the country's west, and is able to carry out frequent bombings in government-held areas.