Spain’s prime minister has doubled down and warned his country will reject the Brexit agreement negotiated by Theresa May, unless it is given concessions on Gibraltar.

Pedro Sanchez said his government needed assurances that the deal does not apply to the British Iberian territory, which Spain claims sovereignty over.

Speaking in Madrid, Mr Sanchez said: “If there are no changes regarding Gibraltar, Spain will vote No to the agreement on Brexit.”

Spain takes issue with a clause added to the withdrawal agreement at the last minute – article 184. The article says the EU and the UK will seek to “negotiate rapidly the agreements governing their future relationship” before the end of the transition.

But Spain wants an addition to the text specifying that Gibraltar is excluded from those talks, and that it is for Spain and Britain to negotiate the future of the territory bilaterally.

Downing Street has however said it believes both the withdrawal and agreement and the future relationship will apply to Gibraltar.

Because the withdrawal agreement will be approved by qualified majority vote of the European Council, Spain alone cannot sink the deal without the support of other countries – though it could veto a future trade agreement down the line.

If there are no changes regarding Gibraltar, Spain will vote No to the agreement on Brexit Pedro Sanchez, Spanish prime minister

The demand presents a dilemma for negotiators, however – as Brexiteers on the British side also want to reopen talks on the withdrawal agreement to gain more concessions, but have been told they must accept it as it stands.

Other countries such as France and Denmark are understood to have other concerns with the plan, which they see as too soft on the UK – because it does not guarantee their fishing fleets access to British waters.

Mr Sanchez has now thrown his weight behind his foreign minister, who raised concerns with the plans at the start of the week.

“The negotiations between Britain and the EU have a territorial scope that does not include Gibraltar, the negotiations on the future of Gibraltar are separate discussions,” Spanish foreign minister Josep Borrell had said on Monday morning in Brussels.

“This is what needs to made clear, and until it is clarified in the withdrawal agreement and in the political declaration on the future relationship, we cannot give our backing.”

Spain has long resented Britain’s claims on Gibraltar, a British overseas territory that is home to around 30,000 people, and has previously threatened to use Brexit to wrest concessions on the issue.

A historic moment: thousands march to demand Final Say on Brexit Show all 65 1 /65 A historic moment: thousands march to demand Final Say on Brexit A historic moment: thousands march to demand Final Say on Brexit An estimated 700,000 people marched through London to demand a final say on the withdrawal agreement Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Red smoke from a canister hangs in the air as around 100,000 demonstrators march through London during a People's Vote anti-brexit demonstration savings banners and placards Anti-Brexit People's Vote March for the Future in London Rex A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Mayor of London Sadiq Khan takes part in the People's Vote March for the Future in London, a march and rally in support of a second EU referendum. PA A historic moment: thousands march to demand Final Say on Brexit Final Say campaigners take part in the peoples vote march for the future in London 20/10/2018 Protesters wearing final Say shirts and holding placards Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit MP Chuka Umunna (left) and MP Vince Cable (right) as MP Anna Soubry (centre) addresses Anti-Brexit campaigners at a rally after the People's Vote March for the Future in London, a march and rally in support of a second EU referendum. PA A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit A People’s Vote march attendee calls for a Final Say Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Demonstrators with banners 'We're with EU' during the People's Vote March for the Future in London, Britain, 20 October 2018. Reports state that the 'March for the Future' is to be led by a column of young people and call for a Peopleâ€™s Vote on the Brexit deal. After marching through central London, there will be a rally on stage in Parliament Square, including speeches from Mayor of London Sadiq Khan. EPA A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Protesters at London’s march for the future in October The Independent A historic moment: thousands march to demand Final Say on Brexit Editor of The Independent Christian Broughton speaks to demonstrators in Parliament Sqaure after they take part in a march calling for a People's Vote on the final Brexit deal, in central London on October 20, 2018. - Britons dreading life outside Europe gathered from all corners of the UK to London on Saturday to try to stop their country's looming breakup with the EU. AFP/Getty A historic moment: thousands march to demand Final Say on Brexit A poster at the March for the Future in October The Independent A historic moment: thousands march to demand Final Say on Brexit Anti-Brexit campaigners take part in the People's Vote March for the Future in London, a march and rally in support of a second EU referendum. PA A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say campaigners take part in the peoples vote march for the future in London 20/10/2018 Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Anti-Brexit campaigners take part in the People's Vote March for the Future in London, a march and rally in support of a second EU referendum. PA A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Demonstrators hold placards as they take part in a march calling for a People's Vote on the final Brexit deal, in central London on October 20, 2018. - Britons dreading life outside Europe gathered from all corners of the UK to London on Saturday to try to stop their country's looming breakup with the EU. AFP/Getty A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Final Say campaigners take part in the peoples vote march for the future in London 20/10/2018 campaigner wrapped in EU flag Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say campaigners take part in the peoples vote march for the future in London 20/10/2018 Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Demonstrators pass Trafalgar Square as they take part in a march calling for a People's Vote on the final Brexit deal, in central London on October 20, 2018. - Britons dreading life outside Europe gathered from all corners of the UK to London on Saturday to try to stop their country's looming breakup with the EU. AFP/Getty A historic moment: thousands march to demand Final Say on Brexit Demonstrators wave Union and European flags and hold up placards as they pass Trafalgar Square, taking part in a march calling for a People's Vote on the final Brexit deal, in central London on October 20, 2018. - Britons dreading life outside Europe gathered from all corners of the UK to London on Saturday to try to stop their country's looming breakup with the EU. AFP/Getty A historic moment: thousands march to demand Final Say on Brexit Demonstrators hold placards as they take part in a march calling for a People's Vote on the final Brexit deal, in central London on October 20, 2018. - Britons dreading life outside Europe gathered from all corners of the UK to London on Saturday to try to stop their country's looming breakup with the EU. AFP/Getty A historic moment: thousands march to demand Final Say on Brexit A demonstrator holds a message during a march calling for a People's Vote on the final Brexit deal, in central London on October 20, 2018. - Britons dreading life outside Europe gathered from all corners of the UK to London on Saturday to try to stop their country's looming breakup with the EU. AFP/Getty A historic moment: thousands march to demand Final Say on Brexit Anti-Brexit campaigners take part in the People's Vote March for the Future in London, a march and rally in support of a second EU referendum. PA A historic moment: thousands march to demand Final Say on Brexit Demonstrators take part in the 'People's Vote March for the Future,' in central London, Britain, 20 October 2018. Reports state that the 'March for the Future' is to be led by a column of young people and call for a Peopleâ€™s Vote on the Brexit deal. After marching through central London, there will be a rally on stage in Parliament Square, including speeches from Mayor of London Sadiq Khan EPA A historic moment: thousands march to demand Final Say on Brexit A protester brandishes an Independent t-shirt during the Brexit March Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Anti-Brexit campaigners take part in the People's Vote March for the Future in London, a march and rally in support of a second EU referendum PA A historic moment: thousands march to demand Final Say on Brexit Tens of thousands of people take part in People's Vote March for the Future in central London. The march organised by the People's Vote campaign is led by young people calling for a People's Vote on the Brexit deal Rex A historic moment: thousands march to demand Final Say on Brexit Anti-Brexit campaigners take part in the People's Vote March for the Future in London, a march and rally in support of a second EU referendum PA

The Gibraltar issue is also controversial with the Spanish public, with successive governments benefiting politically by grandstanding on the matter.

The upsurge in interest in the Gibraltar issue could be down to the fact that the Spanish region of Andalusia has local elections scheduled for 2 December – just a week after the final Brexit summit.