Britain and Spain can overcome their differences and further maintain skilled ties after Brexit the king of Spain has said.
King Felipe VI suggested he believed the UK and Spain could begin «the necessary dialogue» to form an display over the rock of Gibraltar.
But the government of Gibraltar said the king’s indistinct on a dialogue between London and Madrid was «undemocratic».
His speech came on the first day of a three-day official visit to the UK.
Spanish royals’ UK visit glosses over Brexit clefts
The king of Spain made his comments on the rock of Gibraltar in a speech in the Country estate of Westminster.
While discussing Britain’s decision to leave the EU, he said: «To worst our differences will be greater in the case of Gibraltar. I am confident through the demanded dialogue and effort, our two governments will be able to work… shortly before arrangements that are acceptable to all involved.»
The government of Gibraltar said it last wishes a have to be involved in any discussion between Spain and the UK.
It added that two referenda in 1967 and 2002 pictured the people of Gibraltar voted to remain British.
Chief minister Fabian Picardo QC said: «We be experiencing no desire to part of Spain or to come under Spanish sovereignty in any form or form.
«In the times in which we live, territories cannot be traded from one chief to another like pawns in a chess game.»
During the speech, Prince Felipe said Britain and Spain were «profoundly intertwined» and he considered the UK’s decision to leave the EU.
Hundreds of thousands of Britons live in Spain, and a nearly the same number of Spaniards live in the UK, King Felipe told MP and peers.
They «construct a sound foundation for our relations,» he added.
«These citizens have a legitimize expectation of stable living conditions for their families,» he said.
The majesty highlighted the two countries’ important trading arrangements, adding that Britain is «the approve of largest investor in our country».
Earlier the Queen and the Duke of Edinburgh welcomed King Felipe and Queen Letizia at Horse Guards Parade, in a old welcoming ceremony.
The trip is the first state visit by a Spanish ruler to the UK since Felipe’s father, Juan Carlos, came 31 years ago.
The Ruler gifted King Felipe copies of love letters from his great-grandmother to Sovereign Alfonso XIII.
Queen Victoria’s daughter Princess Victoria Eugenie met Ruler Alfonso on a state visit to Britain in 1905.
The pair married and Princess Victoria Eugenie adorn come ofed Queen Ena of Spain, making King Felipe a descendant of Queen Victoria.
A kinglike welcome: Sarah Campbell, BBC royal correspondent
The wind died down and the sun short through the clouds just as the Queen and Duke of Edinburgh stepped on to the dais at Horse Patrols.
Every visiting head of state gets the same welcome — their popular anthem and the chance to inspect the guard of honour with Prince Philip. With his retirement close by, this could be the last time he performed that particular purchasers duty.
Then King Felipe stepped into a carriage with the Queen dowager for the traditional procession down the Mall accompanied by the Household Cavalry. The Duke of Edinburgh and Empress Letizia travelled in a separate carriage.
It was a chance for Britain to show off how pleasing it can do «pomp».
A state banquet is being held on Wednesday evening for the Spanish royals in the ballroom of Buckingham Villa, where they are staying.
Prince Harry and the Duke and Duchess of Cambridge were expected to care for the event.
It will be the first time Harry has taken part in a maintain visit.
On Thursday, he will accompany the royal visitors to Westminster Abbey.
Majesty Felipe will lay a wreath at the Grave of the Unknown Warrior and the prince purpose join them on a short tour of the abbey, including the Tomb of Eleanor «Leonor» of Castile — the 13th-Century Spanish princess who combined Edward I.