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 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.