At least 41 people have been killed in a suicide attack believed to have targeted Shia Muslims in the Iraqi capital, Baghdad.

More than 30 others were injured in the attack in a funeral tent in a crowded marketplace in the Shaab neighbourhood in the north of the city.

The militant is believed to have detonated a suicide vest inside the tent with was crowded with mourners.

Officials said the attack happened around lunchtime.

Many Shia pilgrims are in the city, taking part in mourning rituals in the area to commemorate the killing of Prophet Mohamed's grandson and early Shia imam, Hussein, in the 7th century.

Isis has claimed responsibility for the attack via its propaganda arm, Amaq. The claim could not be independently verified.

The group has carried out similar attacks on the capital repeatedly in the past year, attempting to inflame sectarian tensions between Shia and Sunni Muslims.

In pictures: Baghdad hit by 24 hours of Isis bombings Show all 11 1 /11 In pictures: Baghdad hit by 24 hours of Isis bombings In pictures: Baghdad hit by 24 hours of Isis bombings Baghdad bombings People gather at the scene of a car bomb attack in Baghdad's mainly Shia district of Sadr City, Iraq, May 11, 2016. Reuters In pictures: Baghdad hit by 24 hours of Isis bombings Baghdad bombings People gather at the scene of a car bomb attack in Baghdad's mainly Shia district of Sadr City, Iraq, May 11, 2016. Reuters In pictures: Baghdad hit by 24 hours of Isis bombings Baghdad bombings People gather at the scene of a car bomb attack in Baghdad's mainly Shia district of Sadr City, Iraq, May 11, 2016. Reuters In pictures: Baghdad hit by 24 hours of Isis bombings Baghdad bombings People gather at the scene of a car bomb attack in Baghdad's mainly Shia district of Sadr City, Iraq, May 11, 2016. Reuters In pictures: Baghdad hit by 24 hours of Isis bombings Baghdad bombings Security forces and citizens inspect the scene after a car bomb explosion at a crowded outdoor market in the Iraqi capital's eastern district of Sadr City, Iraq, Wednesday, May 11, 2016. AP In pictures: Baghdad hit by 24 hours of Isis bombings Baghdad bombings People gather at the scene of a car bomb attack in Baghdad's mainly Shia district of Sadr City, Iraq, May 11, 2016. Reuters In pictures: Baghdad hit by 24 hours of Isis bombings Baghdad bombings A woman reacts at the scene of a car bomb attack in Baghdad's mainly Shi'ite district of Sadr City, Iraq, May 11, 2016 Reuters In pictures: Baghdad hit by 24 hours of Isis bombings Baghdad bombings A bulldozer clears the wreckage following a car bomb attack in Sadr City, a Shia area of Baghdad, on May 11, 2016. AFP/Getty Images In pictures: Baghdad hit by 24 hours of Isis bombings Baghdad bombings Iraqis walk past flowers and shoes left on the ground at Oraiba market a day after it was targeted in a car bomb attack on May 12, 2016. AFP/Getty Images In pictures: Baghdad hit by 24 hours of Isis bombings Baghdad bombings Iraqis mourn in the holy city of Najaf during the funeral of victims of a car bombing in Baghdad's Shiia area of Sadr City during on May 11, 2016. AFP/Getty Images In pictures: Baghdad hit by 24 hours of Isis bombings Baghdad bombings Mourners carry the coffins of bomb victims during a funeral procession at the holy shrine of Imam Ali in Najaf, Iraq, on May 11, 2016. AP

In July, a massive car bomb in central Baghdad's popular shopping district of Karradah killed about 300 people and forced the resignation of the country's interior minister.

It came as the Iraqi armed forces planned to launch an assault to recapture Isis' second city and stronghold in the country, Mosul, from the jihadists.

That would be a major blow for the group as it is where their leader Abu Bakr al-Baghdadi declared their "caliphate" in 2014.

Since the start of January 2015, the terror group has been on the backfoot and retreated from vast swathes of territory it captured in 2013 and 2014.

Iraqi government officials told Reuters the group had executed 58 people suspected in taking part in a plot to switch sides and hand Mosul over to the government.

The plotters were drowned before being buried in a mass grave in a wasteland on the outskirts of the city.

One of them was reportedly a local aide of al-Baghdadi.