Media playback is unsupported on your device Media caption MP for Dover and Deal, Charlie Elphicke: "We need to see cooperation between France and Britain"

The UK government has pledged £12m to help France tackle the problem of illegal immigrants trying to enter Britain through Calais.

A plan announced by Home Secretary Theresa May and French counterpart Bernard Cazeneuve will see the two countries work more closely.

Security will be bolstered at the port, which has seen increasing numbers of migrants gathering in recent months.

New technology may be introduced to detect migrants hiding in lorries.

Other measures include building more robust fences as well as increasing security in the car park area of the French port.

Immigration Minister James Brokenshire said British and French law enforcement agencies would also target organised crime gangs behind people trafficking and smuggling.

'Protect the vulnerable'

Tensions have grown in Calais in recent months as the number of people gathering there has risen.

France believes there are 1,500 illegal immigrants in Calais, the numbers having increased by 50% in the past year as people flee from humanitarian crises in northern and eastern Africa and the Middle East.

Many are camping or living in squats and there have been clashes on the streets of the town.

The UK is to contribute five million euros (£4m) a year for three years to a joint intervention fund.

Speaking on the BBC News channel, Mr Brokenshire denied suggestions the UK had been pressured into the deal by France and said it was a "shared issue".

"What this is about is underlining that long-term relationship with the French, focusing on border security, focusing on investment in Calais as a port as well," he said.

Image copyright PA Image caption Migrants in Calais held a protest earlier this month demanding human rights protection

In a statement, Mrs May and Mr Cazeneuve said they would "ensure that all measures taken will deter illegal migrants from congregating in and around Calais".

They promised to "respond to health emergencies and protect vulnerable people", including people trafficking victims, but insisted the measures would not encourage migrants to gather at the port.

The ministers said their efforts would aim to identify measures to ensure migrants did not breach the laws of either country or threaten the safety of Calais residents or those using the port.

'Information campaign'

Mrs May and Mr Cazeneuve have also pledged to push for EU action on what they called an "evident migration crisis" in the Mediterranean area.

As part of the agreement, the layout of the port at Calais will be changed to make it easier to carry out controls and improve traffic flow.

The money will also fund information campaigns to explain the consequences of illegal immigration to the UK and provide details on asylum in France or assisted voluntary return.

The National Crime Agency is to second a full-time officer to Ocriest, the French agency responsible for tackling illegal immigration, and the French border police will send two officers each month to work with the joint border intelligence unit in Folkestone.

The BBC's Hugh Schofield in Paris said France saw it as a "landmark deal" because, in its view, Britain has now recognised it has a "responsibility" in securing the port.

Authorities in Calais have been "vocal" in asking for help over the summer, leading to the involvement of the French and now the British government.

However, he added that no one believed the new scheme would solve the "chronic" problem at Calais, which goes back more than a decade.

Calais mayor Natacha Bouchart had threaten to blockade the port unless the UK helped to control the problem.

Earlier this month, scores of migrants got past security and tried to run up the ramp of a ferry headed for the UK, but their attempts were foiled.

Conservative MP for Dover and Deal Charlie Elphicke called for "wider action at the European level to deal with the European open borders problem".

He also told the BBC: "This problem at Calais has a knock-on effect to the UK. We're not a disinterested spectator and it's right that we take action with the French to deal with this problem."