Gibraltar was ceded to Britain under the terms of which treaty?
Lines of Contravallation of Gibraltar to the territory by land. The lines covered a distance of 950 toises () and were built 1,000 toises () from the Rock of Gibraltar, where the British defences began. This sparked a diplomatic dispute between Britain and Spain. During the negotiations that led to the Treaty of Utrecht of 1713, under which Spain ceded Gibraltar to Britain, the British government sought to compel the Spanish to cede "a convenient quantity of land round Gibraltar, viz., to the distance of two cannon shot ... which is absolutely necessary for preventing all occasions of dispute between the Garrison and the Country
Kingdom of Gibraltar century. Gibraltar was finally captured by Castile on 15 December 1462 when it fell to an army led by the Duke of Medina Sidonia, who expelled the Moors from the territory. King Henry IV of Castile, the brother of the later Queen Isabella I of Castile, rewarded the duke with the title of Marquess of Gibraltar and added the kingship of Gibraltar to the list of titles of the Castilian crown. The title continued to be used by his successors even after the territory was ceded to the Crown of Great Britain in perpetuity under the terms of the Treaty