Competing rallies were being held on Saturday in Pierrefeu in south-east France.

The mayor led several hundred people protesting against a government proposal to house migrants in an abandoned wing of a psychiatric hospital while they apply for asylum or study other options.

Left-wing activists held their own, smaller rally to welcome the migrants.

Gendarmes stood watch but the morning gatherings were peaceful. The far-right National Front plans its own anti-migrant protest later in the day.

The National Front is urging mayors to resist the Calais relocation plan and is organising or taking part in protests across the country this month.

Resistance to immigration is central to the campaign platform of National Front leader Marine Le Pen in her bid for the French presidency next year.

National Front politicians were also at a protest on Saturday in Forges-les-Bains south of Paris.

About 200 people marched through town, past the farmers' market, school and town hall to protest against the arrival of about 40 Afghan migrants relocated from Calais to an unused building in their town.

President Francois Hollande has pledged to close the Calais camp before winter and relocate as many as 9,000 migrants living there to 164 sites around France while their cases are examined.

The Calais camp has been an embarrassment to the French government and a symbol of Europe's failure to find solutions to the migrant crisis.

Pierrefeu residents hostile to the migrants say they fear the newcomers will threaten their security, and worry about potential tensions with psychiatric patients.

"Even if we can understand the dismantling of Calais ... our small towns are not the solution for this dismantling.

"We are too small to host so many people," said Mayor Patrick Martinelli.

The government is considering sending up to 60 migrants to this town of 6,000 for up to five months.

The pro-migrant residents called for solidarity.

"I am ashamed because we repress the poorest. They need us, the people who are coming from abroad, and are dying in the seas.

"We have everything here, we are a rich country, we have a rich village," said Pierrefeu resident Laure Paul.

In Forges-les-Bains, villagers largely say they are not hostile to the migrants themselves - they just don't want them in their towns.

Posters at the march read "Not against migrants, but against the state" and "Plan imposed from above = mounting anger."