Tens of thousands of protesters marched through the Bangladesh capital on Tuesday calling for a boycott of French products and burning an effigy of President Emmanuel Macron after he defended cartoons depicting the Prophet Mohammed.

Police estimated more than 40,000 people took part in the march organised by an Islamist party that was halted before it could get close to the French embassy in Dhaka.

Protesters chanting "Boycott French products" and calling for Macron to be punished choked the streets.

Hundreds of police deployed a barbed wire barricade across a road about five kilometres (three miles) from the embassy to stop them advancing.

Before breaking up, one group doused an effigy with a Macron face in kerosene and set it ablaze, shouting anti-French slogans.

The French president has been the target of protests in several countries over his comments, made after a teacher in a Paris suburb was decapitated for showing cartoons of the Prophet Mohammed to his pupils.

Any depiction of Mohammed is forbidden in Islam.

The rally was organised by Islami Andolan Bangladesh, one of the largest Islamist parties in the Muslim majority country of 168 million people.

The party has called for more nationwide protests on Thursday and Friday.

"Macron is one of the few leaders who worship Satan," Ataur Rahman, a senior Islami Andolon leader, told the rally.

Police estimated that more than 40,000 people took part in the march organised by an Islamist party which was halted before it could get close to the French embassy in Dhaka Police estimated that more than 40,000 people took part in the march organised by an Islamist party which was halted before it could get close to the French embassy in Dhaka Photo: AFP / Munir UZ ZAMAN

Rahman called on the Bangladesh government to expel the French ambassador while another leader said activists would "tear down every brick" of the embassy if the envoy was not ordered out.

"France is the enemy of Muslims. Those who represent them are also our enemies," said Nesar Uddin, another leader from the group.

Police said that extra forces were patrolling around the French embassy in the diplomatic district.

Teacher Samuel Paty was killed by a Chechen teenager on October 16 after showing cartoons of the Prophet Mohammed in a discussion on freedom of speech.

The French president's comments defending the cartoons have already led to a diplomatic showdown with Turkey and protests in other Muslim majority states.

France is a major trade partner for Bangladesh whose garment factories sell apparel worth billions of dollars to French brands.

Lafarge, the world's top cement maker, is one of the largest French investors in Bangladesh.

Cartoons of the Prophet Mohammed published by a Danish newspaper in 2005 triggered massive protests in the country.

There have been several violent Islamist incidents in Bangladesh in recent years.

One group linked to Islamic State killed at least 17 foreigners, including seven Italians and nine Japanese, in an attack on a Dhaka cafe in July 2016.