According to the geography of Spain , Gibraltar is a British colonial territory .
Spain also shares land boundaries with France and Andorra along the Pyrenees in the northeast , with Portugal on the west , and with the small British Overseas Territory of Gibraltar near the southernmost tip .
Geography of Spain