Title: Foreign relations of Spain
Content:  Whilst the disputed on Gibraltar with Great Britain is the best known territorial dispute of Spain, the country also has disputes with Portugal and Morocco.
Title: Exclusive economic zone of Spain
Content:  The British colony of the United Kingdom claims that Gibraltar has jurisdiction over the territorial waters annexed to the Rock. Spain argues that the Treaty of Utrecht would only give the British jurisdiction over the internal waters of the port. This discussion would lead both parties to a diplomatic conflict that returned after a fishing dispute in 2013.
Title: Spain–United Kingdom relations
Content:  protected nature sites under EU law. This decision is being currently challenged in the European Court of Justice by the Government of Gibraltar, backed by the British government. The Commission will defend its position and, in doing so, will be backed by Spain In May 2009 Gibraltar authorities complained about the presence of a Guardia Civil Maritime Service vessel into the three-mile waters around Gibraltar, escalating to the intervention of Royal Navy Gibraltar Squadron and a diplomatic protest by the Government of the United Kingdom. Further incidents occurred in November 2009, and in February 2019. In July 2009 Miguel Ángel Moratinos, the Spanish 
Title: Spain–United Kingdom relations
Content:  The United Kingdom and Spain have had several recent disputes over fishing rights, particularly with regards to the European Union's Common Fisheries Policy. When Spain became a member state in 1986, it had the world's sixth largest fishing fleet, and much of the economies of Galicia, Asturias, and Cantabria depended upon catches by Spanish boats outside Spain's national Exclusive Economic Zone, just as they do today. To prevent the fleets of other EU members (particularly Spain) taking up the UK's Common Fisheries Policy quota, the UK sought to create a framework that discriminated between British- and Spanish-owned boats, regardless of flag 
Title: Disputed status of the isthmus between Gibraltar and Spain
Content:  The United Kingdom relies on de facto arguments of possession by prescription in relation to the southern part of the isthmus, as there has been "continuous possession [of the isthmus] over a long period". On December 2, 1987, in a joint British-Spanish declaration about the use of the airport, as well as in several EU acts, the UK has acknowledged that Spain disputes the sovereignty of the isthmus (The ... arrangements ... are understood to be without prejudice to the respective legal positions of Spain and the United Kingdom with regard to the dispute over sovereignty over the territory in which the airport is situated. ), although they reject the 
Title: Spain–United Kingdom relations
Content:  be conducted. In 2004, Spain and the United Kingdom established the Tripartite Forum for Dialogue on Gibraltar, with equal representation of both countries and the British Overseas Territory. Waters around Gibraltar, declared by the United Kingdom as territorial waters according to the United Nations Convention on the Law of the Sea (to a three-mile limit), and claimed by Spain, are another source of contention, with the Government of Gibraltar actively backing the British position naming the disputed waters as "British Gibraltar territorial waters". In December 2008, the European Commission approved a Spanish request designating most of the waters around Gibraltar as one of 
Title: List of irredentist claims or disputes
Content:  Spain maintains a claim on Gibraltar, a British Overseas Territory near the southernmost tip of the Iberian Peninsula, which has been British since the 18th Century. Gibraltar was captured in 1704, during the War of the Spanish Succession (1701–1714). The Kingdom of Spain formally ceded the territory in perpetuity to the British Crown in 1713, under Article X of the Treaty of Utrecht. Spain's territorial claim was formally reasserted by the Spanish dictator Francisco Franco in the 1960s and has been continued by successive Spanish governments. In 2002 an agreement in principle on joint sovereignty over Gibraltar between the governments of the United Kingdom and Spain was decisively rejected in a referendum. The British Government now refuses to discuss sovereignty without the consent of the Gibraltarians.
Title: Spain
Content:  one hand, and the Rock and city of Gibraltar on the other. While the Rock and city were ceded by the Treaty of Utrecht, Spain asserts that the "occupation of the isthmus is illegal and against the principles of International Law". The United Kingdom relies on de facto arguments of possession by prescription in relation to the isthmus, as there has been "continuous possession [of the isthmus] over a long period". Another claim by Spain is about the Savage Islands, part of Portugal. In clash with the Portuguese position, Spain claims that they are rocks rather than islands, and therefore Spain does not accept any 
Title: Foreign relations of Spain
Content:  Spain has been successful in managing its relations with its three immediate European neighbours, France, Andorra, and Portugal. The accession of Spain and Portugal to the EU in 1986 has helped ease some of their periodic trade frictions by putting these into an EU context. Franco-Spanish bilateral cooperation has been enhanced by joint action against recurring violence by separatist Basque group ETA since the 1960s. Ties with the United Kingdom are generally good, although the question of Gibraltar remains a sensitive issue, especially since the UK vote on Brexit.
Title: Exclusive economic zone of Spain
Content:  Spain formerly disputed the EEZ's southern border, maintaining that it should be drawn halfway between Madeira and the Canary Islands. But Portugal exercises sovereignty over the Savage Islands, a small archipelago north of the Canaries, claiming an EEZ border further south. Spain objected, arguing that the Savage Islands do not have a separate continental shelf, citing article 121 of the United Nations Convention on the Law of the Sea. Spain no longer disputes the Portuguese claim since 2015.

Question: what territory is spain and the united kingdom in a dispute over?
Answer: Gibraltar.