Tanzania has cancelled next month's independence day celebrations, with the funds to be instead spent on rebuilding infrastructure damaged in recent election unrest, Prime Minister Mwigulu Nchemba has said.

His announcement comes as the opposition and others have been calling for people to gather on independence day - 9 December - to demonstrate about killings that took place following last month's disputed poll.

The opposition believes hundreds of people died in the crackdown. The government has yet to give a death toll and has set up a commission of inquiry.

President Samia Suluhu Hassan won the poll with 98% of the vote, described by the opposition as a mockery of democracy.

Her key opponents were unable to contest the poll: Tundu Lissu has been in detention on treason charges, which he denies, while Luhaga Mpina's candidacy was rejected on technical grounds.

Election observers have since reported signs that the vote was manipulated and fell short of democratic standards.

The government had imposed an internet blackout for five days from the 29 October election day and threatened anyone sharing photos from the protests.

Gruesome images and videos of dead Tanzanians have since been widely shared online, with international media verifying some of the graphic footage as authentic.

However, the government has criticised their portrayal as aimed at tarnishing the country's image, insisting the country is safe.

On Sunday, the government spokesman Gerson Msigwa said the commission of inquiry would shed light into what happened. However, groups have raised concern over the independence of the commission.

At least 240 people were charged with treason after the protests, but the president later sought to ease tension and asked prosecutors to show leniency. Many of those charged have reportedly already been released.

On Monday, while announcing the cancellation of celebrations, Nchemba appealed to Tanzanians to avoid violence and insisted on the importance of political dialogue.

I urge my fellow Tanzanians to come together and discuss the issues affecting us. Let us not return to what we went through, because the consequences are irreparable, he said.

President Samia came into office in 2021 as Tanzania's first female president following the death of President John Magufuli.

She was initially praised for easing political repression, but the political space has since narrowed.