European Commissioner Maros Sefcovic called it "a truly historic milestone for the EU, including Spain, as well as for the UK and Gibraltar."

According to him, this happened after a successful meeting with the participation of Spanish Foreign Minister Jose Manuel Albares, British Foreign Minister David Lammy and Gibraltar's Chief Minister Fabian Picardo.

On his Facebook page, Lammy called the deal "a practical solution that guarantees sovereignty, jobs and growth."

"We have ensured that Gibraltar's interests as part of the British family are at the heart of this agreement," he added.

The UK and Spain have been trying for many years to reach an agreement so that people and goods can freely cross the British Overseas Territory's land border with Spain. But one of the most pressing issues remained the question of how the border would be controlled.

All parties sought to reach an agreement before the entry into force of the new EU entry/exit system, which is scheduled for October this year. Gibraltar, which is a British Overseas Territory, was ceded to Great Britain in 1713, but Spain claims it as its own.

The deal will eliminate all physical barriers, checks and controls of people and goods at border crossings between Spain and Gibraltar. However, the checks will be carried out at the port and airfield of Gibraltar. ru.euronews.com.